Browse Source

修改再次输入新密码提示文字

syhx
bjang03 1 month ago
parent
commit
39cfa68b99
  1. 22
      src/views/login/components/LoginForm.vue

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

@ -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+'到期,请尽快修改。',

Loading…
Cancel
Save