|
@@ -15,6 +15,7 @@ const { loadStart, loadDone } = usePageLoading()
|
|
|
// 路由不重定向白名单
|
|
|
const whiteList = [
|
|
|
'/login',
|
|
|
+ '/loginAdmin',
|
|
|
'/social-login',
|
|
|
'/auth-redirect',
|
|
|
'/bind',
|
|
@@ -56,12 +57,10 @@ router.beforeEach(async (to, from, next) => {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- console.log('to---------------')
|
|
|
- console.log(to)
|
|
|
- if (to.path.indexOf('loginAdmin') !== -1 && to.query.debugger === '1') {
|
|
|
- next()
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (to.path.indexOf('loginAdmin') !== -1 && to.query.debugger === '1') {
|
|
|
+ // next()
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (whiteList.indexOf(to.path) !== -1) {
|
|
|
next()
|
|
|
} else {
|