From f8a0ce8f29916909c36cd042839dbe22c56cdd65 Mon Sep 17 00:00:00 2001 From: danial Date: Fri, 14 Nov 2025 22:51:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor(router):=20=E8=B0=83=E6=95=B4=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=97=A5=E5=BF=97=E8=B7=AF=E7=94=B1=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将登录日志路由从用户中心模块迁移到iframe模块 - 确保登录日志路由保持身份验证和权限设置不变 - 优化路由结构,增强模块划分清晰度 --- src/router/routes/modules/iframe.ts | 10 ++++++++++ src/router/routes/modules/user-profile.ts | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/router/routes/modules/iframe.ts b/src/router/routes/modules/iframe.ts index 14cd4c3..abf100e 100644 --- a/src/router/routes/modules/iframe.ts +++ b/src/router/routes/modules/iframe.ts @@ -255,6 +255,16 @@ const IFRAME: AppRouteRecordRaw = { requiresAuth: false, roles: ['*'] } + }, + { + path: 'login-log', + name: 'LoginLog', + component: () => import('@/views/user-center/login-log/index.vue'), + meta: { + locale: '登录日志', + requiresAuth: true, + roles: ['*'] + } } ] }; diff --git a/src/router/routes/modules/user-profile.ts b/src/router/routes/modules/user-profile.ts index 1c6cb46..2678c0e 100644 --- a/src/router/routes/modules/user-profile.ts +++ b/src/router/routes/modules/user-profile.ts @@ -22,16 +22,6 @@ const DASHBOARD: AppRouteRecordRaw = { requiresAuth: true, roles: ['*'] } - }, - { - path: 'login-log', - name: 'LoginLog', - component: () => import('@/views/user-center/login-log/index.vue'), - meta: { - locale: '登录日志', - requiresAuth: true, - roles: ['*'] - } } ] };