Pārlūkot izejas kodu

添加一个白名单

lighter 1 gadu atpakaļ
vecāks
revīzija
bff0412235
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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) {