Explorar o código

feat: 将demo-video路由加到白名单

Jack Zhou hai 1 semana
pai
achega
03acc88fb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -219,7 +219,7 @@ router.beforeEach(async (to, from, next) => {
   }
 
   // 未登录白名单
-  const whiteList = ['/login', '/public-tracking', '/public-tracking/detail', '/reset-password']
+  const whiteList = ['/login', '/public-tracking', '/public-tracking/detail', '/reset-password', '/demo-video']
   // 判断是否登录
   if (!whiteList.includes(to.path) && !userStore.isLogin) {
     const userStore = useUserStore()