限制初始密码强制范围并修复后台图片加载
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user