1
lkk
2 天以前 23c5e0e685d7824b34db2e5d2776a13c325a71bd
src/permission.js
@@ -45,7 +45,14 @@
      // 在免登录白名单,直接进入
      next()
    } else {
      next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
      // next(`/login?redirect=${to.fullPath}}`)
      // next(`/login?redirect=${to.fullPath}&hospId=${to.meta.routerType}`) // 否则全部重定向到登录页
      next({
        path:"/login",
        query:{
          redirect:to.fullPath,
        }
      })
      NProgress.done()
    }
  }