Browse Source

又完善了Lab1(路由问题)

chillqi 2 years ago
parent
commit
1ec0b7a3bf
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/router/index.ts

+ 0 - 1
src/router/index.ts

@@ -37,7 +37,6 @@ const router = createRouter({
 })
 
 router.beforeEach((to, _, next) => {
-    next()
     const token: string | null = sessionStorage.getItem('token');
     const role: string | null = sessionStorage.getItem('role')