限制初始密码强制范围并修复后台图片加载

This commit is contained in:
yml
2026-06-18 15:44:41 +08:00
parent 35f2d93fdf
commit 275663c4ea
6 changed files with 73 additions and 8 deletions
+4 -1
View File
@@ -47,6 +47,9 @@ const passwordForm = reactive({
new_password: '',
confirm_password: '',
})
const shouldForcePasswordChange = computed(
() => adminSession.passwordMustChange && adminSession.isSuperAdmin
)
interface NavItem {
label: string
@@ -394,7 +397,7 @@ async function handleForcedPasswordChange() {
</section>
<el-dialog
:model-value="adminSession.passwordMustChange"
:model-value="shouldForcePasswordChange"
title="修改初始密码"
width="420px"
:close-on-click-modal="false"