Преглед на файлове

重复点击更多按钮问题

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
         }
     }