diff --git a/src/config/router.config.js b/src/config/router.config.js index 0405693..678664c 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -4,7 +4,7 @@ import * as Icons from '@/core/icons' const RouteView = { name: 'RouteView', - render: (h) => h('router-view'), + render: (h) => h('router-view') } /** @@ -34,7 +34,7 @@ export const asyncRouterMap = [ path: '/index', name: 'index', component: () => import(/* webpackChunkName: "index" */ '@/views/index/Index'), - meta: { title: '首页', keepAlive: true, icon: Icons.home, permission: ['/index'] }, + meta: { title: '首页', keepAlive: true, icon: Icons.home, permission: ['/index'] } }, // 管理员 @@ -48,14 +48,14 @@ export const asyncRouterMap = [ { path: '/manage/user/index', component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/user/Index'), - meta: { title: '管理员列表', keepAlive: false, permission: ['/manage/user/index'] }, + meta: { title: '管理员列表', keepAlive: false, permission: ['/manage/user/index'] } }, { path: '/manage/role/index', component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/role/Index'), - meta: { title: '角色管理', keepAlive: false, permission: ['/manage/role/index'] }, - }, - ], + meta: { title: '角色管理', keepAlive: false, permission: ['/manage/role/index'] } + } + ] }, // 店铺管理 @@ -69,12 +69,12 @@ export const asyncRouterMap = [ { path: '/store/setting', component: () => import(/* webpackChunkName: "store" */ '@/views/store/Setting'), - meta: { title: '店铺设置', keepAlive: false, permission: ['/store/setting'] }, + meta: { title: '店铺设置', keepAlive: false, permission: ['/store/setting'] } }, { path: '/store/address/index', component: () => import(/* webpackChunkName: "store" */ '@/views/store/address/Index'), - meta: { title: '地址管理', keepAlive: false, permission: ['/store/address/index'] }, + meta: { title: '地址管理', keepAlive: false, permission: ['/store/address/index'] } }, { path: '/store/shop', @@ -88,31 +88,31 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "store" */ '@/views/store/shop/Index'), meta: { title: '门店列表', keepAlive: false, permission: ['/store/shop/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/store/shop/create', '/store/shop/update'], + activePath: ['/store/shop/create', '/store/shop/update'] }, { path: '/store/shop/create', component: () => import(/* webpackChunkName: "store" */ '@/views/store/shop/Create'), meta: { title: '新增门店', keepAlive: false, permission: ['/store/shop/create'] }, - hidden: true, + hidden: true }, { path: '/store/shop/update', component: () => import(/* webpackChunkName: "store" */ '@/views/store/shop/Update'), meta: { title: '编辑门店', keepAlive: false, permission: ['/store/shop/update'] }, - hidden: true, + hidden: true }, { path: '/store/shop/clerk/index', component: () => import(/* webpackChunkName: "store" */ '@/views/store/shop/clerk/Index'), - meta: { title: '店员管理', keepAlive: false, permission: ['/store/shop/clerk/index'] }, + meta: { title: '店员管理', keepAlive: false, permission: ['/store/shop/clerk/index'] } }, { path: '/store/shop/order/index', component: () => import(/* webpackChunkName: "store" */ '@/views/store/shop/order/Index'), - meta: { title: '核销记录', keepAlive: false, permission: ['/store/shop/order/index'] }, - }, - ], + meta: { title: '核销记录', keepAlive: false, permission: ['/store/shop/order/index'] } + } + ] }, { path: '/page', @@ -125,27 +125,27 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "page" */ '@/views/page/Index'), meta: { title: '页面设计', keepAlive: false, permission: ['/page/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/page/create', '/page/update'], + activePath: ['/page/create', '/page/update'] }, { path: '/page/create', component: () => import(/* webpackChunkName: "page" */ '@/views/page/Create'), meta: { title: '新增页面', keepAlive: false, permission: ['/page/create'] }, - hidden: true, + hidden: true }, { path: '/page/update', component: () => import(/* webpackChunkName: "page" */ '@/views/page/Update'), meta: { title: '编辑页面', keepAlive: false, permission: ['/page/update'] }, - hidden: true, + hidden: true }, { path: '/page/category', component: () => import(/* webpackChunkName: "page" */ '@/views/page/category/Index'), meta: { title: '分类模板', keepAlive: false, permission: ['/page/category'] }, - moduleKey: 'store-page-category', - }, - ], + moduleKey: 'store-page-category' + } + ] }, { path: '/store/style', @@ -157,11 +157,11 @@ export const asyncRouterMap = [ { path: '/store/style/theme', component: () => import(/* webpackChunkName: "store" */ '@/views/store/style/Theme'), - meta: { title: '主题风格', keepAlive: false, permission: ['/store/style/theme'] }, - }, - ], - }, - ], + meta: { title: '主题风格', keepAlive: false, permission: ['/store/style/theme'] } + } + ] + } + ] }, // 回收管理 { @@ -174,19 +174,19 @@ export const asyncRouterMap = [ { path: '/recovery/category/index', component: () => import(/* webpackChunkName: "server" */ '@/views/recovery/category/Index'), - meta: { title: '回收分类', keepAlive: false, permission: ['/recovery/category/index'] }, + meta: { title: '回收分类', keepAlive: false, permission: ['/recovery/category/index'] } }, { path: '/recovery/index', component: () => import(/* webpackChunkName: "server" */ '@/views/recovery/Index'), - meta: { title: '回收列表', keepAlive: false, permission: ['/recovery/index'] }, + meta: { title: '回收列表', keepAlive: false, permission: ['/recovery/index'] } }, { path: '/recovery/order/index', component: () => import(/* webpackChunkName: "server" */ '@/views/recovery/order/Index'), - meta: { title: '回收订单', keepAlive: false, permission: ['/recovery/order/index'] }, - }, - ], + meta: { title: '回收订单', keepAlive: false, permission: ['/recovery/order/index'] } + } + ] }, // 服务管理 { @@ -199,19 +199,19 @@ export const asyncRouterMap = [ { path: '/server/category/index', component: () => import(/* webpackChunkName: "server" */ '@/views/server/category/Index'), - meta: { title: '服务分类', keepAlive: false, permission: ['/server/category/index'] }, + meta: { title: '服务分类', keepAlive: false, permission: ['/server/category/index'] } }, { path: '/server/index', component: () => import(/* webpackChunkName: "server" */ '@/views/server/Index'), - meta: { title: '服务列表', keepAlive: false, permission: ['/server/index'] }, + meta: { title: '服务列表', keepAlive: false, permission: ['/server/index'] } }, { path: '/server/Order', component: () => import(/* webpackChunkName: "server" */ '@/views/server/Order'), - meta: { title: '服务订单', keepAlive: false, permission: ['/server/order'] }, - }, - ], + meta: { title: '服务订单', keepAlive: false, permission: ['/server/order'] } + } + ] }, // 商品管理 { @@ -226,31 +226,31 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Index'), meta: { title: '商品列表', keepAlive: false, permission: ['/goods/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/goods/create', '/goods/update', '/goods/copy'], + activePath: ['/goods/create', '/goods/update', '/goods/copy'] }, { path: '/goods/create', component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Create'), meta: { title: '创建商品', keepAlive: false, permission: ['/goods/create'] }, - hidden: true, + hidden: true }, { path: '/goods/update', component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Update'), meta: { title: '编辑商品', keepAlive: false, permission: ['/goods/update'] }, - hidden: true, + hidden: true }, { path: '/goods/copy', component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/Copy'), meta: { title: '复制商品', keepAlive: false, permission: ['/goods/copy'] }, hidden: true, - moduleKey: 'goods-copy', + moduleKey: 'goods-copy' }, { path: '/goods/category/index', component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/category/Index'), - meta: { title: '商品分类', keepAlive: false, permission: ['/goods/category/index'] }, + meta: { title: '商品分类', keepAlive: false, permission: ['/goods/category/index'] } }, // { // path: '/goods/spec-template/index', @@ -264,13 +264,13 @@ export const asyncRouterMap = [ title: '服务承诺', pageTitle: '服务与承诺', keepAlive: false, - permission: ['/goods/service/index'], - }, + permission: ['/goods/service/index'] + } }, { path: '/goods/comment/index', component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/comment/Index'), - meta: { title: '商品评价', keepAlive: false, permission: ['/goods/comment/index'] }, + meta: { title: '商品评价', keepAlive: false, permission: ['/goods/comment/index'] } }, { path: '/goods/import/list', @@ -279,17 +279,17 @@ export const asyncRouterMap = [ title: '商品导入', pageTitle: '商品导入记录', keepAlive: false, - permission: ['/goods/import/list'], + permission: ['/goods/import/list'] }, moduleKey: 'goods-import', // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/goods/import/batch'], + activePath: ['/goods/import/batch'] }, { path: '/goods/import/batch', component: () => import(/* webpackChunkName: "goods" */ '@/views/goods/import/Batch'), meta: { title: '商品导入', pageTitle: '商品批量导入', keepAlive: false, permission: ['/goods/import'] }, - hidden: true, + hidden: true }, { path: '/goods/source/index', @@ -298,8 +298,8 @@ export const asyncRouterMap = [ title: '商品货源', pageTitle: '商品货源', keepAlive: false, - permission: ['/goods/source/index'], - }, + permission: ['/goods/source/index'] + } }, { @@ -313,16 +313,16 @@ export const asyncRouterMap = [ { path: '/apps/collector/index', component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Index'), - meta: { title: '一键采集', keepAlive: false, permission: ['/apps/collector/index'] }, + meta: { title: '一键采集', keepAlive: false, permission: ['/apps/collector/index'] } }, { path: '/apps/collector/setting', component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Setting'), - meta: { title: '接口配置', keepAlive: false, permission: ['/apps/collector/setting'] }, - }, - ], - }, - ], + meta: { title: '接口配置', keepAlive: false, permission: ['/apps/collector/setting'] } + } + ] + } + ] }, // 订单管理 @@ -336,55 +336,55 @@ export const asyncRouterMap = [ { path: '/order/list/all', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'), - meta: { title: '全部订单', keepAlive: false, permission: ['/order/list/all'] }, + meta: { title: '全部订单', keepAlive: false, permission: ['/order/list/all'] } }, { path: '/order/list/delivery', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'), - meta: { title: '待发货', keepAlive: false, permission: ['/order/list/all'] }, + meta: { title: '待发货', keepAlive: false, permission: ['/order/list/all'] } }, { path: '/order/list/receipt', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'), - meta: { title: '待收货', keepAlive: false, permission: ['/order/list/all'] }, + meta: { title: '待收货', keepAlive: false, permission: ['/order/list/all'] } }, { path: '/order/list/pay', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'), - meta: { title: '待付款', keepAlive: false, permission: ['/order/list/all'] }, + meta: { title: '待付款', keepAlive: false, permission: ['/order/list/all'] } }, { path: '/order/list/complete', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'), - meta: { title: '已完成', keepAlive: false, permission: ['/order/list/all'] }, + meta: { title: '已完成', keepAlive: false, permission: ['/order/list/all'] } }, { path: '/order/list/apply-cancel', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'), - meta: { title: '待取消', keepAlive: false, permission: ['/order/list/all'] }, + meta: { title: '待取消', keepAlive: false, permission: ['/order/list/all'] } }, { path: '/order/list/cancel', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Index'), - meta: { title: '已取消', keepAlive: false, permission: ['/order/list/all'] }, + meta: { title: '已取消', keepAlive: false, permission: ['/order/list/all'] } }, { path: '/order/detail', component: () => import(/* webpackChunkName: "order" */ '@/views/order/Detail'), meta: { title: '订单详情', keepAlive: false, permission: ['/order/detail'] }, - hidden: true, + hidden: true }, { path: '/order/refund/index', component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/Index'), meta: { title: '售后管理', keepAlive: false, permission: ['/order/refund/index'] }, - activePath: ['/order/refund/detail'], + activePath: ['/order/refund/detail'] }, { path: '/order/refund/detail', component: () => import(/* webpackChunkName: "order" */ '@/views/order/refund/Detail'), meta: { title: '售后单详情', keepAlive: false, permission: ['/order/refund/detail'] }, - hidden: true, + hidden: true }, { path: '/order/tools', @@ -396,29 +396,29 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "order" */ '@/views/order/tools/delivery/Index'), meta: { title: '发货管理', keepAlive: false, permission: ['/order/tools/delivery'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/order/tools/delivery/record'], + activePath: ['/order/tools/delivery/record'] }, { path: '/order/tools/export', component: () => import(/* webpackChunkName: "order" */ '@/views/order/tools/Export'), meta: { title: '订单导出', keepAlive: false, permission: ['/order/tools/export'] }, - moduleKey: 'order-export', + moduleKey: 'order-export' }, { path: '/order/tools/delivery/batch', component: () => import(/* webpackChunkName: "order" */ '@/views/order/tools/delivery/Batch'), meta: { title: '批量发货', keepAlive: false, permission: ['/order/tools/delivery/batch'] }, - hidden: true, + hidden: true }, { path: '/order/tools/delivery/record', component: () => import(/* webpackChunkName: "order" */ '@/views/order/tools/delivery/Record'), meta: { title: '发货记录', keepAlive: false, permission: ['/order/tools/delivery/record'] }, - hidden: true, - }, - ], - }, - ], + hidden: true + } + ] + } + ] }, // 会员管理 @@ -431,7 +431,7 @@ export const asyncRouterMap = [ { path: '/user/index', component: () => import(/* webpackChunkName: "user" */ '@/views/user/Index'), - meta: { title: '会员列表', keepAlive: false, permission: ['/user/index'] }, + meta: { title: '会员列表', keepAlive: false, permission: ['/user/index'] } }, // { // path: '/user/grade/index', @@ -455,16 +455,16 @@ export const asyncRouterMap = [ { path: '/user/recharge/index', component: () => import(/* webpackChunkName: "content" */ '@/views/user/recharge/Index'), - meta: { title: '充值记录', keepAlive: false, permission: ['/user/recharge/index'] }, + meta: { title: '充值记录', keepAlive: false, permission: ['/user/recharge/index'] } }, { path: '/user/balance/index', component: () => import(/* webpackChunkName: "content" */ '@/views/user/balance/Index'), - meta: { title: '余额明细', keepAlive: false, permission: ['/user/balance/index'] }, - }, - ], - }, - ], + meta: { title: '余额明细', keepAlive: false, permission: ['/user/balance/index'] } + } + ] + } + ] }, // 内容管理 @@ -481,17 +481,17 @@ export const asyncRouterMap = [ meta: { title: '文章管理', keepAlive: false, permission: ['/content/article'] }, moduleKey: 'content-article', children: [ - { - path: '/content/article/index', - component: () => import(/* webpackChunkName: "content" */ '@/views/content/article/Index'), - meta: { title: '文章列表', keepAlive: false, permission: ['/content/article/index'] }, - }, { path: '/content/article/category/index', component: () => import(/* webpackChunkName: "content" */ '@/views/content/article/category/Index'), - meta: { title: '文章分类', keepAlive: false, permission: ['/content/article/category/index'] }, + meta: { title: '文章分类', keepAlive: false, permission: ['/content/article/category/index'] } }, - ], + { + path: '/content/article/index', + component: () => import(/* webpackChunkName: "content" */ '@/views/content/article/Index'), + meta: { title: '文章列表', keepAlive: false, permission: ['/content/article/index'] } + } + ] }, { path: '/content/files', @@ -502,32 +502,32 @@ export const asyncRouterMap = [ { path: '/content/files/index', component: () => import(/* webpackChunkName: "content" */ '@/views/content/files/Index'), - meta: { title: '文件列表', keepAlive: false, permission: ['/content/files/index'] }, + meta: { title: '文件列表', keepAlive: false, permission: ['/content/files/index'] } }, { path: '/content/files/group/index', component: () => import(/* webpackChunkName: "content" */ '@/views/content/files/group/Index'), - meta: { title: '文件分组', keepAlive: false, permission: ['/content/files/group/index'] }, - }, - ], + meta: { title: '文件分组', keepAlive: false, permission: ['/content/files/group/index'] } + } + ] }, { path: '/content/help/index', component: () => import(/* webpackChunkName: "content" */ '@/views/content/help/Index'), meta: { title: '帮助中心', keepAlive: false, permission: ['/content/help/index'] }, - moduleKey: 'content-help', + moduleKey: 'content-help' }, { path: '/content/richText/index', component: () => import(/* webpackChunkName: "content" */ '@/views/content/richText/Index'), - meta: { title: '富文本管理', keepAlive: false, permission: ['/content/richText/index'] }, + meta: { title: '富文本管理', keepAlive: false, permission: ['/content/richText/index'] } }, { path: '/content/banner/index', component: () => import(/* webpackChunkName: "content" */ '@/views/content/banner/Index'), - meta: { title: '轮播图管理', keepAlive: false, permission: ['/content/banner/index'] }, - }, - ], + meta: { title: '轮播图管理', keepAlive: false, permission: ['/content/banner/index'] } + } + ] }, // 营销管理 @@ -550,31 +550,31 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "market" */ '@/views/market/coupon/Index'), meta: { title: '优惠券列表', keepAlive: false, permission: ['/market/coupon/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/market/coupon/create', '/market/coupon/update'], + activePath: ['/market/coupon/create', '/market/coupon/update'] }, { path: '/market/coupon/create', component: () => import(/* webpackChunkName: "market" */ '@/views/market/coupon/Create'), meta: { title: '创建优惠券', keepAlive: false, permission: ['/market/coupon/create'] }, - hidden: true, + hidden: true }, { path: '/market/coupon/update', component: () => import(/* webpackChunkName: "market" */ '@/views/market/coupon/Update'), meta: { title: '编辑优惠券', keepAlive: false, permission: ['/market/coupon/update'] }, - hidden: true, + hidden: true }, { path: '/market/coupon/receive/index', component: () => import(/* webpackChunkName: "market" */ '@/views/market/coupon/Receive'), - meta: { title: '领券记录', keepAlive: false, permission: ['/market/coupon/receive/index'] }, + meta: { title: '领券记录', keepAlive: false, permission: ['/market/coupon/receive/index'] } }, { path: '/market/coupon/give', component: () => import(/* webpackChunkName: "market" */ '@/views/market/coupon/Give'), - meta: { title: '手动发放', keepAlive: false, permission: ['/market/coupon/give'] }, - }, - ], + meta: { title: '手动发放', keepAlive: false, permission: ['/market/coupon/give'] } + } + ] }, { path: '/market/recharge', @@ -586,14 +586,14 @@ export const asyncRouterMap = [ { path: '/market/recharge/plan/index', component: () => import(/* webpackChunkName: "market" */ '@/views/market/recharge/plan/Index'), - meta: { title: '充值套餐', keepAlive: false, permission: ['/market/recharge/plan/index'] }, + meta: { title: '充值套餐', keepAlive: false, permission: ['/market/recharge/plan/index'] } }, { path: '/market/recharge/setting', component: () => import(/* webpackChunkName: "market" */ '@/views/market/recharge/Setting'), - meta: { title: '充值设置', keepAlive: false, permission: ['/market/recharge/setting'] }, - }, - ], + meta: { title: '充值设置', keepAlive: false, permission: ['/market/recharge/setting'] } + } + ] }, { path: '/market/points', @@ -605,43 +605,43 @@ export const asyncRouterMap = [ { path: '/market/points/setting', component: () => import(/* webpackChunkName: "market" */ '@/views/market/points/Setting'), - meta: { title: '积分设置', keepAlive: false, permission: ['/market/points/setting'] }, + meta: { title: '积分设置', keepAlive: false, permission: ['/market/points/setting'] } }, { path: '/market/points/log', component: () => import(/* webpackChunkName: "market" */ '@/views/market/points/Log'), - meta: { title: '积分明细', keepAlive: false, permission: ['/market/points/log'] }, - }, - ], + meta: { title: '积分明细', keepAlive: false, permission: ['/market/points/log'] } + } + ] }, { path: '/market/recommended', component: () => import(/* webpackChunkName: "market" */ '@/views/market/Recommended'), meta: { title: '商品推荐', keepAlive: false, permission: ['/market/recommended'] }, - moduleKey: 'market-recommended', + moduleKey: 'market-recommended' }, { path: '/market/full-free', component: () => import(/* webpackChunkName: "market" */ '@/views/market/FullFree'), meta: { title: '满额包邮', keepAlive: false, permission: ['/market/full-free'] }, - moduleKey: 'market-fullFree', + moduleKey: 'market-fullFree' }, { path: '/market/active', component: () => import(/* webpackChunkName: "market" */ '@/views/market/active/Index'), - meta: { title: '活动管理', keepAlive: false }, + meta: { title: '活动管理', keepAlive: false } }, { path: '/market/presale/index', component: () => import(/* webpackChunkName: "market" */ '@/views/market/presale/Index'), - meta: { title: '预售列表', keepAlive: false }, + meta: { title: '预售列表', keepAlive: false } }, { path: '/market/settle/index', component: () => import(/* webpackChunkName: "market" */ '@/views/market/settle/Index'), - meta: { title: '商家入驻', keepAlive: false }, - }, - ], + meta: { title: '商家入驻', keepAlive: false } + } + ] }, // 数据统计 @@ -650,7 +650,7 @@ export const asyncRouterMap = [ name: 'statistics', component: () => import(/* webpackChunkName: "statistics" */ '@/views/statistics/Index'), meta: { title: '数据统计', keepAlive: true, icon: Icons.statistics, permission: ['/statistics'] }, - moduleKey: 'statistics-statistics', + moduleKey: 'statistics-statistics' }, // 客户端 @@ -663,13 +663,13 @@ export const asyncRouterMap = [ keepAlive: true, icon: Icons.mpWeixin, iconStyle: { fontSize: '17.2px', color: '#36b313' }, - permission: ['/client'], + permission: ['/client'] }, children: [ { path: '/client/register', component: () => import(/* webpackChunkName: "client" */ '@/views/client/Register'), - meta: { title: '注册设置', keepAlive: false, permission: ['/client/register'] }, + meta: { title: '注册设置', keepAlive: false, permission: ['/client/register'] } }, { path: '/client/wxapp', @@ -681,9 +681,9 @@ export const asyncRouterMap = [ { path: '/client/wxapp/setting', component: () => import(/* webpackChunkName: "client" */ '@/views/client/wxapp/Setting'), - meta: { title: '小程序设置', keepAlive: false, permission: ['/client/wxapp/setting'] }, - }, - ], + meta: { title: '小程序设置', keepAlive: false, permission: ['/client/wxapp/setting'] } + } + ] }, { path: '/client/wxofficial', @@ -695,14 +695,14 @@ export const asyncRouterMap = [ { path: '/client/wxofficial/setting', component: () => import(/* webpackChunkName: "client" */ '@/views/client/wxofficial/Setting'), - meta: { title: '公众号设置', keepAlive: false, permission: ['/client/wxofficial/setting'] }, + meta: { title: '公众号设置', keepAlive: false, permission: ['/client/wxofficial/setting'] } }, { path: '/client/wxofficial/share', component: () => import(/* webpackChunkName: "client" */ '@/views/client/wxofficial/Share'), - meta: { title: '分享设置', keepAlive: false, permission: ['/client/wxofficial/share'] }, - }, - ], + meta: { title: '分享设置', keepAlive: false, permission: ['/client/wxofficial/share'] } + } + ] }, { path: '/client/h5', @@ -714,9 +714,9 @@ export const asyncRouterMap = [ { path: '/client/h5/setting', component: () => import(/* webpackChunkName: "client" */ '@/views/client/h5/Setting'), - meta: { title: '站点设置', keepAlive: false, permission: ['/client/h5/setting'] }, - }, - ], + meta: { title: '站点设置', keepAlive: false, permission: ['/client/h5/setting'] } + } + ] }, { path: '/client/mp/alipay', @@ -730,16 +730,16 @@ export const asyncRouterMap = [ { path: '/client/mp/alipay/setting', component: () => import(/* webpackChunkName: "client" */ '@/views/client/mp/alipay/Setting'), - meta: { title: '小程序设置', keepAlive: false, permission: ['/client/mp/alipay/setting'] }, + meta: { title: '小程序设置', keepAlive: false, permission: ['/client/mp/alipay/setting'] } }, { path: '/client/mp/alipay/customer', component: () => import(/* webpackChunkName: "client" */ '@/views/client/mp/alipay/Customer'), - meta: { title: '客服设置', keepAlive: false, permission: ['/client/mp/alipay/customer'] }, - }, - ], - }, - ], + meta: { title: '客服设置', keepAlive: false, permission: ['/client/mp/alipay/customer'] } + } + ] + } + ] }, // 应用中心 @@ -755,7 +755,7 @@ export const asyncRouterMap = [ 'apps-sharp', 'apps-live', 'apps-eorder', - 'apps-collector', + 'apps-collector' ], children: [ { @@ -769,34 +769,34 @@ export const asyncRouterMap = [ { path: '/apps/dealer/apply', component: () => import(/* webpackChunkName: "dealer" */ '@/views/apps/dealer/apply/Index'), - meta: { title: '入驻申请', keepAlive: false, permission: ['/apps/dealer/apply'] }, + meta: { title: '入驻申请', keepAlive: false, permission: ['/apps/dealer/apply'] } }, { path: '/apps/dealer/user', component: () => import(/* webpackChunkName: "dealer" */ '@/views/apps/dealer/user/Index'), - meta: { title: '分销商用户', keepAlive: false, permission: ['/apps/dealer/user'] }, + meta: { title: '分销商用户', keepAlive: false, permission: ['/apps/dealer/user'] } }, { path: '/apps/dealer/order', component: () => import(/* webpackChunkName: "dealer" */ '@/views/apps/dealer/order/Index'), - meta: { title: '分销订单', keepAlive: false, permission: ['/apps/dealer/order'] }, + meta: { title: '分销订单', keepAlive: false, permission: ['/apps/dealer/order'] } }, { path: '/apps/dealer/withdraw', component: () => import(/* webpackChunkName: "dealer" */ '@/views/apps/dealer/withdraw/Index'), - meta: { title: '提现申请', keepAlive: false, permission: ['/apps/dealer/withdraw'] }, + meta: { title: '提现申请', keepAlive: false, permission: ['/apps/dealer/withdraw'] } }, { path: '/apps/dealer/poster', component: () => import(/* webpackChunkName: "dealer" */ '@/views/apps/dealer/poster/Index'), - meta: { title: '分销海报', keepAlive: false, permission: ['/apps/dealer/poster'] }, + meta: { title: '分销海报', keepAlive: false, permission: ['/apps/dealer/poster'] } }, { path: '/apps/dealer/setting', component: () => import(/* webpackChunkName: "dealer" */ '@/views/apps/dealer/setting/Index'), - meta: { title: '分销设置', keepAlive: false, permission: ['/apps/dealer/setting'] }, - }, - ], + meta: { title: '分销设置', keepAlive: false, permission: ['/apps/dealer/setting'] } + } + ] }, { path: '/apps/bargain', @@ -811,31 +811,31 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "bargain" */ '@/views/apps/bargain/active/Index'), meta: { title: '活动列表', keepAlive: false, permission: ['/apps/bargain/active/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/apps/bargain/active/create', '/apps/bargain/active/update'], + activePath: ['/apps/bargain/active/create', '/apps/bargain/active/update'] }, { path: '/apps/bargain/active/create', component: () => import(/* webpackChunkName: "bargain" */ '@/views/apps/bargain/active/Create'), meta: { title: '创建活动', keepAlive: false, permission: ['/apps/bargain/active/create'] }, - hidden: true, + hidden: true }, { path: '/apps/bargain/active/update', component: () => import(/* webpackChunkName: "bargain" */ '@/views/apps/bargain/active/Update'), meta: { title: '编辑活动', keepAlive: false, permission: ['/apps/bargain/active/update'] }, - hidden: true, + hidden: true }, { path: '/apps/bargain/task/index', component: () => import(/* webpackChunkName: "bargain" */ '@/views/apps/bargain/task/Index'), - meta: { title: '砍价任务', keepAlive: false, permission: ['/apps/bargain/task/index'] }, + meta: { title: '砍价任务', keepAlive: false, permission: ['/apps/bargain/task/index'] } }, { path: '/apps/bargain/setting', component: () => import(/* webpackChunkName: "bargain" */ '@/views/apps/bargain/Setting'), - meta: { title: '砍价设置', keepAlive: false, permission: ['/apps/bargain/setting'] }, - }, - ], + meta: { title: '砍价设置', keepAlive: false, permission: ['/apps/bargain/setting'] } + } + ] }, { path: '/apps/groupon', @@ -850,36 +850,36 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "groupon" */ '@/views/apps/groupon/goods/Index'), meta: { title: '拼团商品', keepAlive: false, permission: ['/apps/groupon/goods/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/apps/groupon/goods/create', '/apps/groupon/goods/update'], + activePath: ['/apps/groupon/goods/create', '/apps/groupon/goods/update'] }, { path: '/apps/groupon/goods/create', component: () => import(/* webpackChunkName: "groupon" */ '@/views/apps/groupon/goods/Create'), meta: { title: '创建拼团商品', keepAlive: false, permission: ['/apps/groupon/goods/create'] }, - hidden: true, + hidden: true }, { path: '/apps/groupon/goods/update', component: () => import(/* webpackChunkName: "groupon" */ '@/views/apps/groupon/goods/Update'), meta: { title: '编辑拼团商品', keepAlive: false, permission: ['/apps/groupon/goods/update'] }, - hidden: true, + hidden: true }, { path: '/apps/groupon/task', component: () => import(/* webpackChunkName: "groupon" */ '@/views/apps/groupon/task/Index'), - meta: { title: '拼单管理', keepAlive: false, permission: ['/apps/groupon/task'] }, + meta: { title: '拼单管理', keepAlive: false, permission: ['/apps/groupon/task'] } }, { path: '/apps/groupon/robot', component: () => import(/* webpackChunkName: "groupon" */ '@/views/apps/groupon/robot/Index'), - meta: { title: '拼团机器人', keepAlive: false, permission: ['/apps/groupon/robot'] }, + meta: { title: '拼团机器人', keepAlive: false, permission: ['/apps/groupon/robot'] } }, { path: '/apps/groupon/setting', component: () => import(/* webpackChunkName: "groupon" */ '@/views/apps/groupon/Setting'), - meta: { title: '拼团设置', keepAlive: false, permission: ['/apps/groupon/setting'] }, - }, - ], + meta: { title: '拼团设置', keepAlive: false, permission: ['/apps/groupon/setting'] } + } + ] }, { path: '/apps/sharp', @@ -894,19 +894,19 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/goods/Index'), meta: { title: '秒杀商品', keepAlive: false, permission: ['/apps/sharp/goods/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/apps/sharp/goods/create', '/apps/sharp/goods/update'], + activePath: ['/apps/sharp/goods/create', '/apps/sharp/goods/update'] }, { path: '/apps/sharp/goods/create', component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/goods/Create'), meta: { title: '创建商品', keepAlive: false, permission: ['/apps/sharp/goods/create'] }, - hidden: true, + hidden: true }, { path: '/apps/sharp/goods/update', component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/goods/Update'), meta: { title: '编辑商品', keepAlive: false, permission: ['/apps/sharp/goods/update'] }, - hidden: true, + hidden: true }, { path: '/apps/sharp/active/index', @@ -917,39 +917,39 @@ export const asyncRouterMap = [ '/apps/sharp/active/create', '/apps/sharp/active/time/index', '/apps/sharp/active/time/create', - '/apps/sharp/active/time/update', - ], + '/apps/sharp/active/time/update' + ] }, { path: '/apps/sharp/active/create', component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/active/Create'), meta: { title: '新增会场', keepAlive: false, permission: ['/apps/sharp/active/create'] }, - hidden: true, + hidden: true }, { path: '/apps/sharp/active/time/index', component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/active/time/Index'), meta: { title: '活动会场-场次管理', keepAlive: false, permission: ['/apps/sharp/active/time/index'] }, - hidden: true, + hidden: true }, { path: '/apps/sharp/active/time/create', component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/active/time/Create'), meta: { title: '新增场次', keepAlive: false, permission: ['/apps/sharp/active/time/create'] }, - hidden: true, + hidden: true }, { path: '/apps/sharp/active/time/update', component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/active/time/Update'), meta: { title: '编辑场次', keepAlive: false, permission: ['/apps/sharp/active/time/update'] }, - hidden: true, + hidden: true }, { path: '/apps/sharp/setting', component: () => import(/* webpackChunkName: "sharp" */ '@/views/apps/sharp/Setting'), - meta: { title: '秒杀设置', keepAlive: false, permission: ['/apps/sharp/setting'] }, - }, - ], + meta: { title: '秒杀设置', keepAlive: false, permission: ['/apps/sharp/setting'] } + } + ] }, { path: '/apps/live', @@ -962,9 +962,9 @@ export const asyncRouterMap = [ { path: '/apps/live/room/index', component: () => import(/* webpackChunkName: "live" */ '@/views/apps/live/room/Index'), - meta: { title: '直播间管理', keepAlive: false, permission: ['/apps/live/room/index'] }, - }, - ], + meta: { title: '直播间管理', keepAlive: false, permission: ['/apps/live/room/index'] } + } + ] }, { path: '/apps/eorder', @@ -979,28 +979,28 @@ export const asyncRouterMap = [ component: () => import(/* webpackChunkName: "eorder" */ '@/views/apps/eorder/template/Index'), meta: { title: '面单模板', keepAlive: false, permission: ['/apps/eorder/template/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/apps/eorder/template/create', '/apps/eorder/template/update'], + activePath: ['/apps/eorder/template/create', '/apps/eorder/template/update'] }, { path: '/apps/eorder/template/create', component: () => import(/* webpackChunkName: "eorder" */ '@/views/apps/eorder/template/Create'), meta: { title: '创建面单模板', keepAlive: false, permission: ['/apps/eorder/template/create'] }, - hidden: true, + hidden: true }, { path: '/apps/eorder/template/update', component: () => import(/* webpackChunkName: "eorder" */ '@/views/apps/eorder/template/Update'), meta: { title: '编辑面单模板', keepAlive: false, permission: ['/apps/eorder/template/update'] }, - hidden: true, + hidden: true }, { path: '/apps/eorder/setting', component: () => import(/* webpackChunkName: "eorder" */ '@/views/apps/eorder/Setting'), - meta: { title: '基础设置', keepAlive: false, permission: ['/apps/eorder/setting'] }, - }, - ], - }, - ], + meta: { title: '基础设置', keepAlive: false, permission: ['/apps/eorder/setting'] } + } + ] + } + ] }, // 设置 @@ -1014,24 +1014,24 @@ export const asyncRouterMap = [ { path: '/setting/trade', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Trade'), - meta: { title: '交易设置', keepAlive: false, permission: ['/setting/trade'] }, + meta: { title: '交易设置', keepAlive: false, permission: ['/setting/trade'] } }, { path: '/setting/customer', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Customer'), meta: { title: '客服设置', keepAlive: false, permission: ['/setting/customer'] }, - moduleKey: 'setting-customer', + moduleKey: 'setting-customer' }, { path: '/setting/storage', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Storage'), meta: { title: '上传设置', keepAlive: false, permission: ['/setting/storage'] }, - moduleKey: 'setting-storage', + moduleKey: 'setting-storage' }, { path: '/setting/sms', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/Sms'), - meta: { title: '短信通知', keepAlive: false, permission: ['/setting/sms'] }, + meta: { title: '短信通知', keepAlive: false, permission: ['/setting/sms'] } }, { path: '/setting/delivery', @@ -1043,33 +1043,33 @@ export const asyncRouterMap = [ { path: '/setting/delivery/setting', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/delivery/Setting'), - meta: { title: '配送方式', keepAlive: false, permission: ['/setting/delivery/setting'] }, + meta: { title: '配送方式', keepAlive: false, permission: ['/setting/delivery/setting'] } }, { path: '/setting/delivery/template/index', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/delivery/template/Index'), meta: { title: '运费模板', keepAlive: false, permission: ['/setting/delivery/template/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/setting/delivery/template/create', '/setting/delivery/template/update'], + activePath: ['/setting/delivery/template/create', '/setting/delivery/template/update'] }, { path: '/setting/delivery/template/create', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/delivery/template/Create'), meta: { title: '新增运费模板', keepAlive: false, permission: ['/setting/delivery/template/create'] }, - hidden: true, + hidden: true }, { path: '/setting/delivery/template/update', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/delivery/template/Update'), meta: { title: '编辑运费模板', keepAlive: false, permission: ['/setting/delivery/template/update'] }, - hidden: true, + hidden: true }, { path: '/setting/delivery/express/index', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/delivery/express/Index'), - meta: { title: '物流公司', keepAlive: false, permission: ['/setting/delivery/express/index'] }, - }, - ], + meta: { title: '物流公司', keepAlive: false, permission: ['/setting/delivery/express/index'] } + } + ] }, { path: '/setting/payment', @@ -1081,33 +1081,33 @@ export const asyncRouterMap = [ { path: '/setting/payment/setting', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/payment/Setting'), - meta: { title: '支付设置', keepAlive: false, permission: ['/setting/payment/setting'] }, + meta: { title: '支付设置', keepAlive: false, permission: ['/setting/payment/setting'] } }, { path: '/setting/payment/template/index', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/payment/template/Index'), meta: { title: '支付模板', keepAlive: false, permission: ['/setting/payment/template/index'] }, // 访问其他页面时激活该菜单(router-link-active) - activePath: ['/setting/payment/template/create', '/setting/payment/template/update'], + activePath: ['/setting/payment/template/create', '/setting/payment/template/update'] }, { path: '/setting/payment/template/create', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/payment/template/Create'), meta: { title: '新增支付模板', keepAlive: false, permission: ['/setting/payment/template/create'] }, - hidden: true, + hidden: true }, { path: '/setting/payment/template/update', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/payment/template/Update'), meta: { title: '编辑支付模板', keepAlive: false, permission: ['/setting/payment/template/update'] }, - hidden: true, - }, + hidden: true + } // { // path: '/setting/payment/mchpay', // component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/payment/Mchpay'), // meta: { title: '打款设置', keepAlive: false, permission: ['/setting/payment/mchpay'] } // } - ], + ] }, { path: '/setting/printer', @@ -1120,14 +1120,14 @@ export const asyncRouterMap = [ { path: '/setting/printer/index', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/printer/Index'), - meta: { title: '打印机管理', keepAlive: false, permission: ['/setting/printer/index'] }, + meta: { title: '打印机管理', keepAlive: false, permission: ['/setting/printer/index'] } }, { path: '/setting/printer/setting', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/printer/Setting'), - meta: { title: '打印设置', keepAlive: false, permission: ['/setting/printer/setting'] }, - }, - ], + meta: { title: '打印设置', keepAlive: false, permission: ['/setting/printer/setting'] } + } + ] }, { path: '/setting/other', @@ -1139,13 +1139,13 @@ export const asyncRouterMap = [ { path: '/setting/other/clear', component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/other/Clear'), - meta: { title: '清理缓存', keepAlive: false, permission: ['/setting/other/clear'] }, - }, - ], - }, - ], - }, - ], + meta: { title: '清理缓存', keepAlive: false, permission: ['/setting/other/clear'] } + } + ] + } + ] + } + ] }, // 更新账户信息 @@ -1159,16 +1159,16 @@ export const asyncRouterMap = [ children: [ { path: 'renew', - component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/renew'), - }, - ], + component: () => import(/* webpackChunkName: "manage" */ '@/views/manage/renew') + } + ] }, { path: '*', redirect: '/404', - hidden: true, - }, + hidden: true + } ] /** @@ -1186,14 +1186,14 @@ export const constantRouterMap = [ { path: 'login', name: 'login', - component: () => import(/* webpackChunkName: "passport" */ '@/views/passport/Login'), - }, - ], + component: () => import(/* webpackChunkName: "passport" */ '@/views/passport/Login') + } + ] }, // 404页 { path: '/404', - component: () => import(/* webpackChunkName: "exception" */ '@/views/exception/404'), - }, + component: () => import(/* webpackChunkName: "exception" */ '@/views/exception/404') + } ]