云
10 小时以前 91bfcf61f44f353dfebc54a57b5b774721de3e9a
src/router/guard.ts
@@ -56,7 +56,10 @@
    const dictStore = useDictStore();
    // 基本路由,这些路由不需要进入权限拦截
    if (coreRouteNames.includes(to.name as string)) {
    // Personal settings are available to every signed-in account and still
    // pass through token validation and user/menu initialization below.
    if (to.name === 'Profile') to.meta.fullPathKey = false;
    if (coreRouteNames.includes(to.name as string) && to.name !== 'Profile') {
      if (to.path === LOGIN_PATH && accessStore.accessToken) {
        return decodeURIComponent(
          (to.query?.redirect as string) ||