diff --git a/ecom-dmb-frontend/apps/web-antd/src/router/routes/modules/system.ts b/ecom-dmb-frontend/apps/web-antd/src/router/routes/modules/system.ts index b783ceff..0227b5db 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/router/routes/modules/system.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/router/routes/modules/system.ts @@ -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 }, +};