refactor: 管理员租户切换不再返回首页 直接刷新当前页(除特殊页面外会回到首页)

This commit is contained in:
dap
2025-04-01 19:59:28 +08:00
parent b67be83a19
commit 362bc84cfb
4 changed files with 44 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ const localRoutes: RouteRecordStringComponent[] = [
icon: 'mingcute:profile-line',
title: $t('ui.widgets.profile'),
hideInMenu: true,
requireHomeRedirect: true,
},
name: 'Profile',
path: '/profile',
@@ -23,6 +24,7 @@ const localRoutes: RouteRecordStringComponent[] = [
icon: 'ant-design:setting-outlined',
title: 'oss配置',
hideInMenu: true,
requireHomeRedirect: true,
},
name: 'OssConfig',
path: '/system/oss-config',
@@ -34,6 +36,7 @@ const localRoutes: RouteRecordStringComponent[] = [
icon: 'tabler:code',
title: '生成配置',
hideInMenu: true,
requireHomeRedirect: true,
},
name: 'GenConfig',
path: '/code-gen/edit/:tableId',
@@ -45,6 +48,7 @@ const localRoutes: RouteRecordStringComponent[] = [
icon: 'eos-icons:role-binding-outlined',
title: '分配角色',
hideInMenu: true,
requireHomeRedirect: true,
},
name: 'RoleAssign',
path: '/system/role-assign/:roleId',
@@ -56,6 +60,7 @@ const localRoutes: RouteRecordStringComponent[] = [
icon: 'fluent-mdl2:flow',
title: '流程设计',
hideInMenu: true,
requireHomeRedirect: true,
},
name: 'WorkflowDesigner',
path: '/workflow/designer',
@@ -70,6 +75,7 @@ const localRoutes: RouteRecordStringComponent[] = [
title: '请假申请',
activePath: '/demo/leave',
hideInMenu: true,
requireHomeRedirect: true,
},
name: 'WorkflowLeaveIndex',
path: '/workflow/leaveEdit/index',