|
@ -46,6 +46,7 @@ router.beforeEach(async (to, from, next) => { |
|
|
query:{ |
|
|
query:{ |
|
|
loginName:to.query.loginName, |
|
|
loginName:to.query.loginName, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
|
|
|
isSinglePage:to.query.isSinglePage |
|
|
}, |
|
|
}, |
|
|
replace: true |
|
|
replace: true |
|
|
}) |
|
|
}) |
|
@ -61,6 +62,7 @@ router.beforeEach(async (to, from, next) => { |
|
|
query:{ |
|
|
query:{ |
|
|
loginName:to.query.loginName, |
|
|
loginName:to.query.loginName, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
|
|
|
isSinglePage:to.query.isSinglePage |
|
|
}, |
|
|
}, |
|
|
replace: true |
|
|
replace: true |
|
|
}) |
|
|
}) |
|
@ -84,6 +86,7 @@ router.beforeEach(async (to, from, next) => { |
|
|
query:{ |
|
|
query:{ |
|
|
loginName:to.query.loginName, |
|
|
loginName:to.query.loginName, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
|
|
|
isSinglePage:to.query.isSinglePage |
|
|
}, |
|
|
}, |
|
|
replace: true |
|
|
replace: true |
|
|
}) |
|
|
}) |
|
@ -92,6 +95,7 @@ router.beforeEach(async (to, from, next) => { |
|
|
path:'/login', |
|
|
path:'/login', |
|
|
query:{ |
|
|
query:{ |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
|
|
|
isSinglePage:to.query.isSinglePage |
|
|
}, |
|
|
}, |
|
|
replace: true |
|
|
replace: true |
|
|
}) |
|
|
}) |
|
@ -101,6 +105,15 @@ router.beforeEach(async (to, from, next) => { |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
next() |
|
|
next() |
|
|
|
|
|
// next({
|
|
|
|
|
|
// ...to,
|
|
|
|
|
|
// query:{
|
|
|
|
|
|
// loginName:to.query.loginName,
|
|
|
|
|
|
// isAutoLogin:to.query.isAutoLogin,
|
|
|
|
|
|
// isSinglePage:to.query.isSinglePage
|
|
|
|
|
|
// },
|
|
|
|
|
|
// replace: true
|
|
|
|
|
|
// })
|
|
|
} |
|
|
} |
|
|
// })
|
|
|
// })
|
|
|
// .catch((error) => {
|
|
|
// .catch((error) => {
|
|
@ -116,6 +129,7 @@ router.beforeEach(async (to, from, next) => { |
|
|
query:{ |
|
|
query:{ |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
isAutoLogin:to.query.isAutoLogin, |
|
|
loginName:to.query.loginName, |
|
|
loginName:to.query.loginName, |
|
|
|
|
|
isSinglePage:to.query.isSinglePage |
|
|
}, |
|
|
}, |
|
|
replace: true |
|
|
replace: true |
|
|
}) |
|
|
}) |
|
|