邓洁: 优化界面

This commit is contained in:
邓洁
2024-01-16 16:03:01 +08:00
parent 75929dcb77
commit 5a0f1997e3
11 changed files with 132 additions and 102 deletions

View File

@@ -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()