1
lkk
2025-05-19 c0b8a21206c58a0161a179c15dfb73e4a8bbf55d
src/permission.js
@@ -45,7 +45,15 @@
      // 在免登录白名单,直接进入
      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,
          hospId:""
        }
      })
      NProgress.done()
    }
  }