Просмотр исходного кода

又完善了Lab1(路由问题)

chillqi 2 лет назад
Родитель
Сommit
1ec0b7a3bf
1 измененных файлов с 0 добавлено и 1 удалено
  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')