Przeglądaj źródła

添加一个白名单

lighter 1 rok temu
rodzic
commit
bff0412235
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/router/index.js

+ 1 - 1
src/router/index.js

@@ -57,7 +57,7 @@ export function addRoutes() {
     routesAsynced = true
 }
 
-const whiteList = ['/login', '/dashboard', '/404', '/401', '/']
+const whiteList = ['/login', '/dashboard', '/scrollSource', '/404', '/401', '/']
 
 router.beforeEach((to, _from, next) => {
     if (to.meta.passRule) {