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