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: [] }