diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue
index 04b15d7ba..af7eee2bd 100644
--- a/src/views/login/components/LoginForm.vue
+++ b/src/views/login/components/LoginForm.vue
@@ -259,10 +259,21 @@
console.log('登陆res',res)
const differenceDays = await PassWordApi.validateResetTime(res.userId)
+ debugger
switch (differenceDays){
case null:
break
- case 0 || 1:
+ case 0:
+ await ElMessageBox.alert(
+ '密码到期,请立即修改',
+ '重要提示',
+ {
+ dangerouslyUseHTMLString: true,
+ }
+ )
+ router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}})
+ return
+ case 1:
await ElMessageBox.alert(
'密码到期,请立即修改',
'重要提示',
@@ -272,15 +283,6 @@
)
router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}})
return
- // case 1:
- // await ElMessageBox.alert(
- // '密码过期,请联系管理员修改',
- // '重要提示',
- // {
- // dangerouslyUseHTMLString: true,
- // }
- // )
- // return
default:
await ElMessageBox.alert(
'密码'+differenceDays+'到期,请尽快修改。',