diff --git a/CHANGELOG.md b/CHANGELOG.md index a0a620390..276550f43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - feat: worker 增加 `ADDRESS_CHECK_REGEX`, address name 的正则表达式, 只用于检查,符合条件将通过检查 - fix: UI 修复登录页面 tab 激活图标错位 +- fix: UI 修复 admin 页面刷新弹框输入密码的问题 ## v0.7.2 diff --git a/frontend/src/views/Admin.vue b/frontend/src/views/Admin.vue index 301d48f1a..30882a060 100644 --- a/frontend/src/views/Admin.vue +++ b/frontend/src/views/Admin.vue @@ -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); }) diff --git a/frontend/src/views/admin/Account.vue b/frontend/src/views/admin/Account.vue index 8eb077f48..bd6d6d834 100644 --- a/frontend/src/views/admin/Account.vue +++ b/frontend/src/views/admin/Account.vue @@ -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()