Lijy 1 år sedan
förälder
incheckning
cd2a864ea6
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      fhKeeper/formulahousekeeper/customerBuler-crm/src/router/index.ts

+ 3 - 1
fhKeeper/formulahousekeeper/customerBuler-crm/src/router/index.ts

@@ -50,11 +50,13 @@ router.beforeEach((_to, _from, next) => {
   console.log(routerList, routers);
   const { setAsyncRoutesMark, asyncRoutesMark } = useStore();
   const token = true;
-  if (_to.path == "/login") {
+  const skipPath = ['/login', '/register', '/test', '/testEcharts']
+  if (skipPath.includes(_to.path)) {
     next();
   } else {
     if (token && routerList && routerList.length > 0) {
       if (asyncRoutesMark) {
+        console.log(routers, '<=== 以及有了')
         next();
       } else {
         setAsyncRoutesMark(true)