瀏覽代碼

添加一个白名单

lighter 1 年之前
父節點
當前提交
bff0412235
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {