更新
This commit is contained in:
@@ -16,11 +16,15 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
let paramsTarget = obtainUrlPathParameterTarget(location.href)
|
let paramsTarget = obtainUrlPathParameterTarget(location.href)
|
||||||
console.log('paramsTarget', paramsTarget)
|
|
||||||
sessionStorage.setItem('paramsTarget', JSON.stringify(paramsTarget))
|
sessionStorage.setItem('paramsTarget', JSON.stringify(paramsTarget))
|
||||||
store.login(paramsTarget).then(() => {
|
store.login(paramsTarget).then(
|
||||||
next()
|
() => {
|
||||||
})
|
next()
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
next()
|
||||||
|
}
|
||||||
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user