eight
2024-09-12 e6dff096a9e94d1a5323e82f74bc1368ff7a72d6
src/permission.ts
@@ -53,7 +53,9 @@
  '/auth-redirect',
  '/bind',
  '/register',
  '/oauthLogin/gitee'
  '/oauthLogin/gitee',
  '/calling-screen-big',
  '/calling-screen-room'
]
// 路由加载前
@@ -61,14 +63,15 @@
  console.info("router.beforeEach to: " + to.fullPath + " from: " + from.fullPath)
  start()
  loadStart()
  if (whiteList.indexOf(to.path) !== -1) {
    next()
    return
  }
  if (!getAccessToken()) {
      if (whiteList.indexOf(to.path) !== -1) {
          next()
          return
      } else {
          next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
          return
      }
    next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
    return
  }
  if (to.path === '/login') {