src/permission.js
@@ -11,7 +11,7 @@ NProgress.configure({ showSpinner: false }); const whiteList = ['/homePage']; const whiteList = ['/homePage','/fillForm']; router.beforeEach((to, from, next) => { NProgress.start() @@ -52,7 +52,8 @@ // 在免登录白名单,直接进入 next() } else { next(`/homePage?redirect=${to.fullPath}`) // 否则全部重定向到登录页 // next(`/homePage?redirect=${to.fullPath}`) // 否则全部重定向到登录页 next('/homePage') NProgress.done() } }