|
@@ -8,14 +8,14 @@ import { isRelogin } from '@/utils/request'
|
|
|
|
|
|
NProgress.configure({ showSpinner: false })
|
|
|
|
|
|
-const whiteList = ['/drp/login', '/register']
|
|
|
+const whiteList = ['/login', '/register']
|
|
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
NProgress.start()
|
|
|
if (getToken()) {
|
|
|
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
|
|
|
|
|
|
- if (to.path === '/drp/login') {
|
|
|
+ if (to.path === '/login') {
|
|
|
next({ path: '/' })
|
|
|
NProgress.done()
|
|
|
} else {
|
|
@@ -45,7 +45,7 @@ router.beforeEach((to, from, next) => {
|
|
|
|
|
|
next()
|
|
|
} else {
|
|
|
- next(`/drp/login?redirect=${to.fullPath}`)
|
|
|
+ next(`/login?redirect=${to.fullPath}`)
|
|
|
NProgress.done()
|
|
|
}
|
|
|
}
|