From 03c275439949875a857538df89a41696642c42b3 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期一, 01 九月 2025 17:15:39 +0800 Subject: [PATCH] '首页公告与详情' --- src/router/modules/item.ts | 83 +++++++++++++++++++++++++++++++---------- 1 files changed, 63 insertions(+), 20 deletions(-) diff --git a/src/router/modules/item.ts b/src/router/modules/item.ts index 02ecf02..e5370e0 100644 --- a/src/router/modules/item.ts +++ b/src/router/modules/item.ts @@ -1,21 +1,64 @@ -export default { - path: "/item", - meta: { - title: "椤圭洰绠$悊", - icon: "mdi:chart-timeline" - }, - children: [ - { - // path闅忎究鍐欙紝浣嗗墠闈㈠繀椤绘湁涓� `/` - path: "/item", - // component瀵瑰簲鐨勫�煎墠涓嶉渶瑕佸姞 / 鍊煎搴旂殑鏄疄闄呬笟鍔� `.vue` 鎴� `.tsx` 浠g爜璺緞 - component: () => import("@/views/system/dept/index.vue"), - name: "item", - meta: { - title: "椤圭洰绠$悊", - roles: ["DLJG", "CGR"] - // showLink:false +export default [ + { + path: "/item", + meta: { + title: "椤圭洰绠$悊", + icon: "mdi:chart-timeline" + }, + children: [ + { + // path闅忎究鍐欙紝浣嗗墠闈㈠繀椤绘湁涓� `/` + path: "/item", + // component瀵瑰簲鐨勫�煎墠涓嶉渶瑕佸姞 / 鍊煎搴旂殑鏄疄闄呬笟鍔� `.vue` 鎴� `.tsx` 浠g爜璺緞 + component: () => import("@/views/system/dept/index.vue"), + name: "item", + meta: { + title: "椤圭洰绠$悊", + roles: ["DLJG", "CGR"] + // showLink:false + } } - } - ] -} satisfies RouteConfigsTable; + ] + }, + { + path: "/user", + meta: { + title: "鐢ㄦ埛绠$悊", + icon: "streamline-logos:my-space-logo" + }, + children: [ + { + // path闅忎究鍐欙紝浣嗗墠闈㈠繀椤绘湁涓� `/` + path: "/user", + // component瀵瑰簲鐨勫�煎墠涓嶉渶瑕佸姞 / 鍊煎搴旂殑鏄疄闄呬笟鍔� `.vue` 鎴� `.tsx` 浠g爜璺緞 + component: () => import("@/views/system/user/index.vue"), + name: "user", + meta: { + title: "鐢ㄦ埛绠$悊" + // showLink:false + } + } + ] + } + // { + // path: "/aboutItem", + // meta: { + // title: "鍏虫敞椤圭洰", + // icon: "pajamas:work-item-new" + // }, + // children: [ + // { + // // path闅忎究鍐欙紝浣嗗墠闈㈠繀椤绘湁涓� `/` + // path: "/aboutItem", + // // component瀵瑰簲鐨勫�煎墠涓嶉渶瑕佸姞 / 鍊煎搴旂殑鏄疄闄呬笟鍔� `.vue` 鎴� `.tsx` 浠g爜璺緞 + // component: () => import("@/views/system/aboutItem/index.vue"), + // name: "aboutItem", + // meta: { + // title: "鍏虫敞椤圭洰", + // roles: ["GYS"] + // // showLink:false + // } + // } + // ] + // } +] satisfies Array<RouteConfigsTable>; -- Gitblit v1.9.1