Jelajahi Sumber

重复点击更多按钮问题

chenc 3 tahun lalu
induk
melakukan
11a1abeb72
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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
         }
     }