diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue
index 6fcefd3cd..ed783f5c6 100644
--- a/src/views/login/components/LoginForm.vue
+++ b/src/views/login/components/LoginForm.vue
@@ -260,14 +260,7 @@
console.log('登陆res',res)
const differenceDays = await PassWordApi.validateResetTime(res.userId)
switch (differenceDays){
- case -1:
- await ElMessageBox.alert(
- '密码即将到期,请尽快修改。',
- '重要提示',
- {
- dangerouslyUseHTMLString: true,
- }
- )
+ case null:
break
case 0:
await ElMessageBox.alert(
@@ -288,6 +281,15 @@
}
)
return
+ default:
+ await ElMessageBox.alert(
+ '密码'+differenceDays+'到期,请尽快修改。',
+ '重要提示',
+ {
+ dangerouslyUseHTMLString: true,
+ }
+ )
+ break
}
if (!res) {
console.log('登录-195')
diff --git a/src/views/system/passwordRule/index.vue b/src/views/system/passwordRule/index.vue
index 8582612fb..054beb7fa 100644
--- a/src/views/system/passwordRule/index.vue
+++ b/src/views/system/passwordRule/index.vue
@@ -29,7 +29,7 @@
每分钟
@@ -39,7 +39,7 @@
小时
@@ -49,7 +49,7 @@
每天
@@ -59,7 +59,7 @@
天
@@ -69,7 +69,7 @@
天
@@ -109,8 +109,9 @@ const reset = () => {
ruleDesc: "",
tryCount: 3,
lockMinutes: 1,
- updatePeriod: 1,
+ updatePeriod: 30,
dayTryCount: 3,
+ updateRemind: 7,
}
}
const passwordConfig = ref({
@@ -119,8 +120,9 @@ const passwordConfig = ref({
ruleDesc: "",
tryCount: 3,
lockMinutes: 1,
- updatePeriod: 1,
+ updatePeriod: 30,
dayTryCount: 3,
+ updateRemind: 7,
})
/** 查询配置 */
const getConfig = async () => {