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

@@ -5,6 +5,7 @@
- feat: worker 增加 `ADDRESS_CHECK_REGEX`, address name 的正则表达式, 只用于检查,符合条件将通过检查
- fix: UI 修复登录页面 tab 激活图标错位
- fix: UI 修复 admin 页面刷新弹框输入密码的问题
## v0.7.2

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()