更新
This commit is contained in:
@@ -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(() => {
|
||||
store.login(paramsTarget).then(
|
||||
() => {
|
||||
next()
|
||||
})
|
||||
},
|
||||
() => {
|
||||
next()
|
||||
}
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user