Преглед изворни кода

重复点击更多按钮问题

chenc пре 3 година
родитељ
комит
11a1abeb72
1 измењених фајлова са 2 додато и 1 уклоњено
  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
         }
     }