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