邓洁: 优化界面
This commit is contained in:
@@ -94,7 +94,6 @@ const router = createRouter({
|
||||
});
|
||||
router.beforeEach((to, form, next) => {
|
||||
NProgress.start()
|
||||
console.log('token-----',getToken())
|
||||
if (!getToken()) {
|
||||
if (to.path === '/login') {
|
||||
next()
|
||||
@@ -103,7 +102,6 @@ router.beforeEach((to, form, next) => {
|
||||
next({ path: '/login' })
|
||||
}
|
||||
} else {
|
||||
console.log('有token')
|
||||
// if (to.path === '/login') {
|
||||
// next('/')
|
||||
// NProgress.done()
|
||||
|
||||
Reference in New Issue
Block a user