From c123e77767ca9cfc8d4b5dbbda86bbaabf5be727 Mon Sep 17 00:00:00 2001 From: bibi <541660090@qq.com> Date: Thu, 24 Feb 2022 14:18:08 +0800 Subject: [PATCH] 1 --- src/router/operation.js | 39 +++++++++---------- src/views/Operation/Announcement/index.vue | 4 +- .../_newsItem}/index.vue | 4 +- .../_newsManage}/index.vue | 4 +- 4 files changed, 27 insertions(+), 24 deletions(-) rename src/views/Operation/{Announcement/_announcementItem => News/_newsItem}/index.vue (75%) rename src/views/Operation/{Announcement/_announcementManage => News/_newsManage}/index.vue (75%) diff --git a/src/router/operation.js b/src/router/operation.js index 8662d07..b0f5598 100644 --- a/src/router/operation.js +++ b/src/router/operation.js @@ -51,26 +51,7 @@ export default [ icon: 'file-search', hide: false, component: resolve => require(['@/views/Operation/Announcement'], resolve), - redirect: '/Announcement/AnnouncementManage', meta: {title: '公告'}, - children: [ - { - path: '/Announcement/AnnouncementManage', - name: "AnnouncementManage", - title: "公告管理", - hide: false, - component: resolve => require(['@/views/Operation/Announcement/_announcementManage'], resolve), - meta: {title: '公告管理'}, - }, - { - path: '/Announcement/AnnouncementItem', - name: "AnnouncementItem", - title: "公告分类", - hide: false, - component: resolve => require(['@/views/Operation/Announcement/_announcementItem'], resolve), - meta: {title: '公告分类'}, - }, - ] }, { path: '/News', @@ -80,8 +61,24 @@ export default [ hide: false, component: resolve => require(['@/views/Operation/News'], resolve), redirect: '/News/', - meta: {title: '活动'}, - children: [ + meta: {title: '资讯'}, + children: [ + { + path: '/News/NewsManage', + name: "NewsManage", + title: "资讯管理", + hide: false, + component: resolve => require(['@/views/Operation/News/_newsManage'], resolve), + meta: {title: '资讯管理'}, + }, + { + path: '/News/NewsItem', + name: "NewsItem", + title: "资讯分类", + hide: false, + component: resolve => require(['@/views/Operation/News/_newsItem'], resolve), + meta: {title: '资讯分类'}, + }, ] }, { diff --git a/src/views/Operation/Announcement/index.vue b/src/views/Operation/Announcement/index.vue index b0561c2..3ec745f 100644 --- a/src/views/Operation/Announcement/index.vue +++ b/src/views/Operation/Announcement/index.vue @@ -1,5 +1,7 @@