Skip to content

Commit

Permalink
fix: UI admin page show modal when no need password (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamhunter2333 authored Aug 17, 2024
1 parent 56104cd commit 34e3e1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

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

## v0.7.2

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/Admin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/admin/Account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 34e3e1b

Please sign in to comment.