From f6ad13b4f11aa8afb890a7f02a1a9b7b13d6fd32 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 16 Oct 2025 18:03:51 +0800 Subject: [PATCH] feat: add router --- .../src/router/routes/modules/infra.ts | 30 +++++++++++++++++++ .../src/router/routes/modules/system.ts | 16 ++++++++++ 2 files changed, 46 insertions(+) create mode 100644 apps/web-naive/src/router/routes/modules/infra.ts create mode 100644 apps/web-naive/src/router/routes/modules/system.ts diff --git a/apps/web-naive/src/router/routes/modules/infra.ts b/apps/web-naive/src/router/routes/modules/infra.ts new file mode 100644 index 000000000..c99b51bea --- /dev/null +++ b/apps/web-naive/src/router/routes/modules/infra.ts @@ -0,0 +1,30 @@ +import type { RouteRecordRaw } from 'vue-router'; + +const routes: RouteRecordRaw[] = [ + { + path: '/infra/job/log', + component: () => import('#/views/infra/job/logger/index.vue'), + name: 'InfraJobLog', + meta: { + title: '调度日志', + icon: 'ant-design:history-outlined', + activePath: '/infra/job', + keepAlive: false, + hideInMenu: true, + }, + }, + { + path: '/infra/codegen/edit', + component: () => import('#/views/infra/codegen/edit/index.vue'), + name: 'InfraCodegenEdit', + meta: { + title: '生成配置修改', + icon: 'ic:baseline-view-in-ar', + activePath: '/infra/codegen', + keepAlive: true, + hideInMenu: true, + }, + }, +]; + +export default routes; diff --git a/apps/web-naive/src/router/routes/modules/system.ts b/apps/web-naive/src/router/routes/modules/system.ts new file mode 100644 index 000000000..47e6b1682 --- /dev/null +++ b/apps/web-naive/src/router/routes/modules/system.ts @@ -0,0 +1,16 @@ +import type { RouteRecordRaw } from 'vue-router'; + +const routes: RouteRecordRaw[] = [ + { + path: '/system/notify-message', + component: () => import('#/views/system/notify/my/index.vue'), + name: 'MyNotifyMessage', + meta: { + title: '我的站内信', + icon: 'ant-design:message-filled', + hideInMenu: true, + }, + }, +]; + +export default routes;