fix: UI admin page show modal when no need password (#418)

This commit is contained in:
Dream Hunter
2024-08-17 23:14:35 +08:00
committed by GitHub
parent 56104cd23a
commit 34e3e1b439
3 changed files with 4 additions and 3 deletions

View File

@@ -86,12 +86,12 @@ const { t } = useI18n({
});
onMounted(async () => {
// make sure user_id is fetched
if (!userSettings.value.user_id) await api.getUserSettings(message);
if (!showAdminPage.value) {
showAdminAuth.value = true;
return;
}
// make sure user_id is fetched
if (!userSettings.value.user_id) await api.getUserSettings(message);
})
</script>

View File

@@ -9,7 +9,7 @@ import { NButton, NMenu } from 'naive-ui';
import { MenuFilled } from '@vicons/material'
const {
showAdminAuth, loading, adminTab,
loading, adminTab,
adminMailTabAddress, adminSendBoxTabAddress
} = useGlobalState()
const message = useMessage()