fix: 平台管理路由改为扁平结构测试

This commit is contained in:
小蟑螂
2026-03-30 22:38:22 +08:00
parent b9f9c2feb7
commit f24a970aa7
@@ -2,79 +2,89 @@ import type { RouteRecordRaw } from 'vue-router';
const routes: RouteRecordRaw[] = [
{
name: 'SystemPlatformCompany',
path: '/platform-admin/company',
component: () => import('#/views/organization/company/index.vue'),
meta: {
icon: 'lucide:shield',
order: 100,
title: '平台管理',
icon: 'lucide:building',
title: '公司管理',
requiresAuth: true,
},
},
{
name: 'SystemPlatformMenu',
path: '/platform-admin/menu',
component: () => import('#/views/system/menu/index.vue'),
meta: {
icon: 'lucide:menu',
title: '菜单管理',
requiresAuth: true,
},
},
{
name: 'SystemPlatformPermission',
path: '/platform-admin/permission',
component: () => import('#/views/system/permission/index.vue'),
meta: {
icon: 'lucide:shield-check',
title: '权限码管理',
requiresAuth: true,
},
},
{
name: 'SystemPlatformField',
path: '/platform-admin/field',
component: () => import('#/views/system/field/index.vue'),
meta: {
icon: 'lucide:database',
title: '字段管理',
requiresAuth: true,
},
},
{
name: 'SystemPlatformAccountSuper',
path: '/platform-admin/account-super',
component: () =>
import('#/views/organization/account-super/index.vue'),
meta: {
icon: 'lucide:user-check',
title: '账户管理-超管',
requiresAuth: true,
},
},
{
name: 'SystemPlatformCompanyMenuManage',
path: '/platform-admin/company-menu-manage',
component: () =>
import('#/views/system/platform/company-menu-manage.vue'),
meta: {
icon: 'lucide:layoutDashboard',
title: '公司菜单管理',
requiresAuth: true,
},
},
{
name: 'SystemPlatformCompanyPermissionManage',
path: '/platform-admin/company-permission-manage',
component: () =>
import(
'#/views/system/platform/company-permission-manage.vue'
),
meta: {
icon: 'lucide:shield-check',
title: '公司权限管理',
requiresAuth: true,
},
name: 'SystemPlatform',
path: '/platform-admin',
children: [
{
name: 'PlatformCompanyManagement',
path: '/platform-admin/company',
component: () => import('#/views/organization/company/index.vue'),
meta: {
icon: 'lucide:building',
title: '公司管理',
},
},
{
name: 'PlatformMenuManagement',
path: '/platform-admin/menu',
component: () => import('#/views/system/menu/index.vue'),
meta: {
icon: 'lucide:menu',
title: '菜单管理',
},
},
{
name: 'PlatformPermissionManagement',
path: '/platform-admin/permission',
component: () => import('#/views/system/permission/index.vue'),
meta: {
icon: 'lucide:shield-check',
title: '权限码管理',
},
},
{
name: 'PlatformFieldManagement',
path: '/platform-admin/field',
component: () => import('#/views/system/field/index.vue'),
meta: {
icon: 'lucide:database',
title: '字段管理',
},
},
{
name: 'PlatformAccountSuperManagement',
path: '/platform-admin/account-super',
component: () => import('#/views/organization/account-super/index.vue'),
meta: {
icon: 'lucide:user-check',
title: '账户管理-超管',
},
},
{
name: 'PlatformCompanyMenuAssign',
path: '/platform-admin/company-menu-manage',
component: () => import('#/views/system/platform/company-menu-manage.vue'),
meta: {
icon: 'lucide:layoutDashboard',
title: '公司菜单管理',
},
},
{
name: 'PlatformCompanyPermissionAssign',
path: '/platform-admin/company-permission-manage',
component: () => import('#/views/system/platform/company-permission-manage.vue'),
meta: {
icon: 'lucide:shield-check',
title: '公司权限管理',
},
},
],
},
];
export default routes;
// TEST route - delete after testing
import { h } from 'vue';
const TestRoute: RouteRecordRaw = {
name: 'TestRoute',
path: '/test',
component: () => Promise.resolve({ render: () => h('div', 'TEST PAGE WORKS') }),
meta: { title: 'Test', requiresAuth: true },
};