Jelajahi Sumber

添加一个白名单

lighter 1 tahun lalu
induk
melakukan
bff0412235
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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) {