mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-06 16:07:14 +08:00
fix: UI admin page show modal when no need password (#418)
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
- feat: worker 增加 `ADDRESS_CHECK_REGEX`, address name 的正则表达式, 只用于检查,符合条件将通过检查
|
- feat: worker 增加 `ADDRESS_CHECK_REGEX`, address name 的正则表达式, 只用于检查,符合条件将通过检查
|
||||||
- fix: UI 修复登录页面 tab 激活图标错位
|
- fix: UI 修复登录页面 tab 激活图标错位
|
||||||
|
- fix: UI 修复 admin 页面刷新弹框输入密码的问题
|
||||||
|
|
||||||
## v0.7.2
|
## v0.7.2
|
||||||
|
|
||||||
|
|||||||
@@ -86,12 +86,12 @@ const { t } = useI18n({
|
|||||||
});
|
});
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
// make sure user_id is fetched
|
||||||
|
if (!userSettings.value.user_id) await api.getUserSettings(message);
|
||||||
if (!showAdminPage.value) {
|
if (!showAdminPage.value) {
|
||||||
showAdminAuth.value = true;
|
showAdminAuth.value = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// make sure user_id is fetched
|
|
||||||
if (!userSettings.value.user_id) await api.getUserSettings(message);
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { NButton, NMenu } from 'naive-ui';
|
|||||||
import { MenuFilled } from '@vicons/material'
|
import { MenuFilled } from '@vicons/material'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
showAdminAuth, loading, adminTab,
|
loading, adminTab,
|
||||||
adminMailTabAddress, adminSendBoxTabAddress
|
adminMailTabAddress, adminSendBoxTabAddress
|
||||||
} = useGlobalState()
|
} = useGlobalState()
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
|
|||||||
Reference in New Issue
Block a user