From 4f1ee1915a83166b15fe571acc18db7430b8c995 Mon Sep 17 00:00:00 2001 From: oldHome Date: Fri, 27 Jun 2025 21:24:23 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E4=B8=8B=E8=BD=BDapk?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 23 +++++++ src/store/modules/app.js | 3 +- .../layout/components/main/download/index.vue | 61 +++++++++++++++++++ src/views/layout/components/main/home/set.vue | 3 +- 4 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 src/views/layout/components/main/download/index.vue diff --git a/src/router/index.js b/src/router/index.js index 2df0aa0..8e5a81e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -614,6 +614,29 @@ const routes = [ } ] }, + { + path: '/download', + component: Layout, + redirect: '/download/index', + meta: { + title: '软件下载', + icon: 'iconfont icon-dingdantongji', + roles: ['master', 'admin', 'editor'], + tapName: 'admin' + }, + children: [ + { + path: '/download/index', + component: () => import('@/views/layout/components/main/download/index'), + meta: { + title: '软件下载', + icon: 'iconfont icon-a-SalesOrderManagement', + roles: ['master', 'admin', 'editor'], + tapName: 'admin' + } + } + ] + }, { path: '/404', component: Page404, diff --git a/src/store/modules/app.js b/src/store/modules/app.js index 2757f05..8f8fc3d 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -13,7 +13,8 @@ const defaultModuleVisibilityMap = { category: true, broadcast: true, order: true, - nofly: true + nofly: true, + download: true } // 从 localStorage 读取已有配置,合并覆盖默认配置 diff --git a/src/views/layout/components/main/download/index.vue b/src/views/layout/components/main/download/index.vue new file mode 100644 index 0000000..86ead4b --- /dev/null +++ b/src/views/layout/components/main/download/index.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/views/layout/components/main/home/set.vue b/src/views/layout/components/main/home/set.vue index d3082d5..5e9294e 100644 --- a/src/views/layout/components/main/home/set.vue +++ b/src/views/layout/components/main/home/set.vue @@ -60,7 +60,8 @@ export default { { value: 'category', label: '分类管理' }, { value: 'product', label: '商品管理' }, { value: 'broadcast', label: '广告管理' }, - { value: 'order', label: '订单与统计' } + { value: 'order', label: '订单与统计' }, + { value: 'download', label: '软件下载' } ], selectedModules: [] }