Browse Source

【接口看板+store+job】自动登录失败后退登处理

faster_AG_grid 杭州10.08正式发版版本
安虹睿 12 months ago
parent
commit
ac96aaefae
  1. 5
      PC/InterFace.Dash/src/permission.js
  2. 5
      PC/UI.WinIn.FasterZ.Job/src/permission.js
  3. 5
      PC/UI.WinIn.FasterZ.Store/src/permission.js

5
PC/InterFace.Dash/src/permission.js

@ -92,7 +92,8 @@ const toNextHandle = async (to, from, next) => {
username:_username,
password:localStorage.getItem("configLoginPass")
}).catch(()=>{
getErrHandle(to, from, next)
logoutHandle()
// getErrHandle(to, from, next)
})
}
@ -181,7 +182,7 @@ router.beforeEach(async (to, from, next) => {
})
.catch(()=>{
// toNextHandle(to, from, next)
Message.error(loginErr)
// Message.error(loginErr)
pageToLogin(to, from, next)
})
}else{

5
PC/UI.WinIn.FasterZ.Job/src/permission.js

@ -92,7 +92,8 @@ const toNextHandle = async (to, from, next) => {
username:_username,
password:localStorage.getItem("configLoginPass")
}).catch(()=>{
getErrHandle(to, from, next)
logoutHandle()
// getErrHandle(to, from, next)
})
}
@ -181,7 +182,7 @@ router.beforeEach(async (to, from, next) => {
})
.catch(()=>{
// toNextHandle(to, from, next)
Message.error(loginErr)
// Message.error(loginErr)
pageToLogin(to, from, next)
})
}else{

5
PC/UI.WinIn.FasterZ.Store/src/permission.js

@ -92,7 +92,8 @@ const toNextHandle = async (to, from, next) => {
username:_username,
password:localStorage.getItem("configLoginPass")
}).catch(()=>{
getErrHandle(to, from, next)
logoutHandle()
// getErrHandle(to, from, next)
})
}
@ -181,7 +182,7 @@ router.beforeEach(async (to, from, next) => {
})
.catch(()=>{
// toNextHandle(to, from, next)
Message.error(loginErr)
// Message.error(loginErr)
pageToLogin(to, from, next)
})
}else{

Loading…
Cancel
Save