|
|
@@ -8,9 +8,9 @@ import getPageTitle from '@/utils/get-page-title'
|
|
|
|
|
|
NProgress.configure({showSpinner: false}) // NProgress Configuration
|
|
|
|
|
|
-const whiteList = ['/login', '/auth-redirect','/dashboard-screen', '/login1'] // no redirect whitelist
|
|
|
+const whiteList = ['/login', '/auth-redirect', '/login1'] // no redirect whitelist
|
|
|
|
|
|
-router.beforeEach(async(to, from, next) => {
|
|
|
+router.beforeEach(async (to, from, next) => {
|
|
|
// start progress bar
|
|
|
NProgress.start()
|
|
|
|
|
|
@@ -23,7 +23,6 @@ router.beforeEach(async(to, from, next) => {
|
|
|
if (hasToken) {
|
|
|
if (to.path === '/login') {
|
|
|
// if is logged in, redirect to the home page
|
|
|
- next({path: '/dashboard-screen'})
|
|
|
NProgress.done() // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939
|
|
|
}
|
|
|
// if (to.path === '/index') {
|