|
@ -262,7 +262,7 @@ |
|
|
switch (differenceDays){ |
|
|
switch (differenceDays){ |
|
|
case null: |
|
|
case null: |
|
|
break |
|
|
break |
|
|
case 0: |
|
|
case 0 || 1: |
|
|
await ElMessageBox.alert( |
|
|
await ElMessageBox.alert( |
|
|
'<strong>密码到期,请立即修改</strong>', |
|
|
'<strong>密码到期,请立即修改</strong>', |
|
|
'重要提示', |
|
|
'重要提示', |
|
@ -272,15 +272,15 @@ |
|
|
) |
|
|
) |
|
|
router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}}) |
|
|
router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}}) |
|
|
return |
|
|
return |
|
|
case 1: |
|
|
// case 1: |
|
|
await ElMessageBox.alert( |
|
|
// await ElMessageBox.alert( |
|
|
'<strong>密码过期,请联系管理员修改</strong>', |
|
|
// '<strong>密码过期,请联系管理员修改</strong>', |
|
|
'重要提示', |
|
|
// '重要提示', |
|
|
{ |
|
|
// { |
|
|
dangerouslyUseHTMLString: true, |
|
|
// dangerouslyUseHTMLString: true, |
|
|
} |
|
|
// } |
|
|
) |
|
|
// ) |
|
|
return |
|
|
// return |
|
|
default: |
|
|
default: |
|
|
await ElMessageBox.alert( |
|
|
await ElMessageBox.alert( |
|
|
'密码'+differenceDays+'到期,请尽快修改。', |
|
|
'密码'+differenceDays+'到期,请尽快修改。', |
|
@ -330,6 +330,12 @@ |
|
|
// 存储 部门信息 |
|
|
// 存储 部门信息 |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|
wsCache.set(CACHE_KEY.DEPT, await DeptApi.getSimpleDeptList()) |
|
|
wsCache.set(CACHE_KEY.DEPT, await DeptApi.getSimpleDeptList()) |
|
|
|
|
|
}catch (e){ |
|
|
|
|
|
if(e.code === 1002000008){ |
|
|
|
|
|
setTimeout(function (){ |
|
|
|
|
|
router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}}) |
|
|
|
|
|
},1500) |
|
|
|
|
|
} |
|
|
}finally { |
|
|
}finally { |
|
|
console.log('登录-224') |
|
|
console.log('登录-224') |
|
|
loginLoading.value = false |
|
|
loginLoading.value = false |
|
|