diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index 705db843..19959c3b 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -266,31 +266,26 @@ async function openDialog( agencyFileList.value = result; } } - } if(userStore.userOption.hqOpts.length !== 0) { - + } + if (userStore.userOption.hqOpts.length !== 0) { hqId.value = userStore.userOption.hqOpts[0].value; } - if(userStore.userOption.hqOpts.length === 0) { + if (userStore.userOption.hqOpts.length === 0) { console.log('no hq'); - dialog({ - color: 'warning', - icon: 'mdi-alert', - title: t('warning'), - actionText: t('agree'), - persistent: true, - message: t('headquartersNotEstablished'), - action: async () => { + dialog({ + color: 'warning', + icon: 'mdi-alert', + title: t('warning'), + actionText: t('agree'), + persistent: true, + message: t('headquartersNotEstablished'), + action: async () => {}, + }); - }, - }); - - - return - + return; } - if (action === 'FORM') { modal.value = true; } else if (action === 'INFO') { @@ -710,12 +705,12 @@ watch(inputSearch, async () => await fetchUserList());