Browse Source

1、密码过期提示保留一个

hella_online_20240911
bjang03 2 months ago
parent
commit
542dc85c48
  1. 9
      src/views/login/components/LoginForm.vue

9
src/views/login/components/LoginForm.vue

@ -258,19 +258,16 @@
} }
console.log('登陆res',res) console.log('登陆res',res)
try{ const msg = await PassWordApi.validateResetTime(res.userId)
await PassWordApi.validateResetTime(res.userId) if(msg){
}catch (e) {
if (e.code === 1002000010) {
await ElMessageBox.alert( await ElMessageBox.alert(
'<strong>密码长时间未修改,存在安全隐患,请及时修改</strong>', '<strong>'+msg+'</strong>',
'重要提示', '重要提示',
{ {
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
} }
) )
} }
}
if (!res) { if (!res) {
console.log('登录-195') console.log('登录-195')
getCode() getCode()

Loading…
Cancel
Save