From 2ef12fc31288087059f4d996067f9dc1b032215c Mon Sep 17 00:00:00 2001 From: air <30444667+sszdot@users.noreply.github.com> Date: Tue, 24 Jun 2025 16:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afeat=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91?= =?UTF-8?q?=EF=BC=9A=E6=B7=BB=E5=8A=A0=E5=85=AC=E5=91=8A=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=20=E3=80=90=E8=BF=87=20=20=E7=A8=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9A=20=E3=80=90=E5=BD=B1=20=20=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- src/router/index.js | 33 ++++ .../layout/components/main/message/index.vue | 143 ++++++++++++++++++ .../layout/components/main/message/pub.vue | 107 +++++++++++++ 3 files changed, 283 insertions(+) create mode 100644 src/views/layout/components/main/message/index.vue create mode 100644 src/views/layout/components/main/message/pub.vue diff --git a/src/router/index.js b/src/router/index.js index 4d0f9a2..5ecfd1d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -415,6 +415,39 @@ const routes = [ } ] }, + { + path: '/message', + component: Layout, + redirect: '/message/index', + meta: { + title: '公告管理', + icon: 'iconfont icon-guanliyuan', + roles: ['admin', 'editor'], + tapName: 'admin' + }, + children: [ + { + path: '/message/index', + component: () => import('@/views/layout/components/main/message/index'), + meta: { + title: '公告列表', + icon: 'iconfont icon-yonghuguanli', + roles: ['admin', 'editor'], + tapName: 'admin' + } + }, + { + path: '/message/index', + component: () => import('@/views/layout/components/main/message/pub'), + meta: { + title: '发布公告', + icon: 'iconfont icon-yonghuguanli', + roles: ['admin', 'editor'], + tapName: 'admin' + } + } + ] + }, { path: '/category', component: Layout, diff --git a/src/views/layout/components/main/message/index.vue b/src/views/layout/components/main/message/index.vue new file mode 100644 index 0000000..35eb449 --- /dev/null +++ b/src/views/layout/components/main/message/index.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/src/views/layout/components/main/message/pub.vue b/src/views/layout/components/main/message/pub.vue new file mode 100644 index 0000000..b99da05 --- /dev/null +++ b/src/views/layout/components/main/message/pub.vue @@ -0,0 +1,107 @@ + + + + +