فهرست منبع

又完善了Lab1(路由问题)

chillqi 2 سال پیش
والد
کامیت
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) => {
 router.beforeEach((to, _, next) => {
-    next()
     const token: string | null = sessionStorage.getItem('token');
     const token: string | null = sessionStorage.getItem('token');
     const role: string | null = sessionStorage.getItem('role')
     const role: string | null = sessionStorage.getItem('role')