Explorar o código

重复点击更多按钮问题

chenc %!s(int64=3) %!d(string=hai) anos
pai
achega
11a1abeb72
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/permission.js

+ 2 - 1
src/permission.js

@@ -67,7 +67,8 @@ router.beforeEach((to, from, next) => {
         if (whiteList.indexOf(to.path) !== -1) {
             next()
         } else {
-            next({ path: '/user/login', query: { redirect: to.fullPath } })
+            next({ path: '/user/login'})
+            // next({ path: '/user/login', query: { redirect: to.fullPath } })
             NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
         }
     }