This commit is contained in:
xiaozhiyong
2023-04-06 14:54:57 +08:00
parent f9bf46aff8
commit c553e1b328

View File

@@ -16,11 +16,15 @@ router.beforeEach(async (to, from, next) => {
if (!token) {
let paramsTarget = obtainUrlPathParameterTarget(location.href)
console.log('paramsTarget', paramsTarget)
sessionStorage.setItem('paramsTarget', JSON.stringify(paramsTarget))
store.login(paramsTarget).then(() => {
next()
})
store.login(paramsTarget).then(
() => {
next()
},
() => {
next()
}
)
return
}