|
|
@ -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{ |
|
|
|