|
|
|
@ -20,29 +20,29 @@ export const asyncRouterMap = [ |
|
|
|
|
{ |
|
|
|
|
path: 'index', |
|
|
|
|
component: () => import(/* webpackChunkName: "store" */ '@/views/store/index'), |
|
|
|
|
meta: { title: '商城列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] }, |
|
|
|
|
meta: { title: '商城列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: 'auth', |
|
|
|
|
component: () => import(/* webpackChunkName: "store" */ '@/views/store/auth'), |
|
|
|
|
meta: { title: '授权列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] }, |
|
|
|
|
meta: { title: '授权列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: 'draft', |
|
|
|
|
component: () => import(/* webpackChunkName: "store" */ '@/views/store/draft'), |
|
|
|
|
meta: { title: '草稿列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] }, |
|
|
|
|
meta: { title: '草稿列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: 'template', |
|
|
|
|
component: () => import(/* webpackChunkName: "store" */ '@/views/store/template'), |
|
|
|
|
meta: { title: '模板列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] }, |
|
|
|
|
meta: { title: '模板列表', keepAlive: true, hiddenHeaderContent: false, permission: ['store'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/store/recycle', |
|
|
|
|
component: () => import(/* webpackChunkName: "store" */ '@/views/store/recycle'), |
|
|
|
|
meta: { title: '回收站', keepAlive: true, permission: ['store'] }, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
meta: { title: '回收站', keepAlive: true, permission: ['store'] } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
@ -55,14 +55,14 @@ export const asyncRouterMap = [ |
|
|
|
|
{ |
|
|
|
|
path: '/menu/index', |
|
|
|
|
component: () => import(/* webpackChunkName: "menu" */ '@/views/menu/index'), |
|
|
|
|
meta: { title: '菜单列表', keepAlive: true, permission: ['access'] }, |
|
|
|
|
meta: { title: '菜单列表', keepAlive: true, permission: ['access'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/menu/access/index', |
|
|
|
|
component: () => import(/* webpackChunkName: "menu" */ '@/views/menu/access/index'), |
|
|
|
|
meta: { title: 'API权限', keepAlive: true, permission: ['access'] }, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
meta: { title: 'API权限', keepAlive: true, permission: ['access'] } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: 'dataCenter', |
|
|
|
@ -79,37 +79,37 @@ export const asyncRouterMap = [ |
|
|
|
|
{ |
|
|
|
|
path: '/goods/index', |
|
|
|
|
component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/goods/Index'), |
|
|
|
|
meta: { title: '商品列表', keepAlive: false, permission: ['access'] }, |
|
|
|
|
meta: { title: '商品列表', keepAlive: false, permission: ['access'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/goods/create', |
|
|
|
|
component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/goods/Create'), |
|
|
|
|
meta: { title: '创建商品', keepAlive: false }, |
|
|
|
|
hidden: true, |
|
|
|
|
hidden: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/goods/update', |
|
|
|
|
component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/goods/Update'), |
|
|
|
|
meta: { title: '编辑商品', keepAlive: false }, |
|
|
|
|
hidden: true, |
|
|
|
|
hidden: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/goods/modify', |
|
|
|
|
component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/goods/modify'), |
|
|
|
|
meta: { title: '批量修改', keepAlive: false }, |
|
|
|
|
hidden: true, |
|
|
|
|
hidden: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/goods/copy', |
|
|
|
|
component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/goods/Copy'), |
|
|
|
|
meta: { title: '复制商品', keepAlive: false }, |
|
|
|
|
hidden: true, |
|
|
|
|
moduleKey: 'goods-copy', |
|
|
|
|
moduleKey: 'goods-copy' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/goods/category/index', |
|
|
|
|
component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/goods/category/Index'), |
|
|
|
|
meta: { title: '商品分类', keepAlive: false }, |
|
|
|
|
meta: { title: '商品分类', keepAlive: false } |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
@ -118,19 +118,19 @@ export const asyncRouterMap = [ |
|
|
|
|
meta: { |
|
|
|
|
title: '商品导入', |
|
|
|
|
pageTitle: '商品导入记录', |
|
|
|
|
keepAlive: false, |
|
|
|
|
keepAlive: false |
|
|
|
|
}, |
|
|
|
|
moduleKey: 'goods-import', |
|
|
|
|
// 访问其他页面时激活该菜单(router-link-active)
|
|
|
|
|
activePath: ['/goods/import/batch'], |
|
|
|
|
activePath: ['/goods/import/batch'] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/goods/import/batch', |
|
|
|
|
component: () => import(/* webpackChunkName: "goods" */ '@/views/dataCenter/goods/import/Batch'), |
|
|
|
|
meta: { title: '商品导入', pageTitle: '商品批量导入', keepAlive: false }, |
|
|
|
|
hidden: true, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
hidden: true |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
@ -143,45 +143,45 @@ export const asyncRouterMap = [ |
|
|
|
|
{ |
|
|
|
|
path: '/setting/cache', |
|
|
|
|
component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/cache'), |
|
|
|
|
meta: { title: '清理缓存', keepAlive: false, permission: ['setting'] }, |
|
|
|
|
meta: { title: '清理缓存', keepAlive: false, permission: ['setting'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/setting/science', |
|
|
|
|
component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/science'), |
|
|
|
|
meta: { title: '环境检测', keepAlive: false, permission: ['setting'] }, |
|
|
|
|
meta: { title: '环境检测', keepAlive: false, permission: ['setting'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/setting/timer', |
|
|
|
|
component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/timer'), |
|
|
|
|
meta: { title: '定时任务', keepAlive: false, permission: ['setting'] }, |
|
|
|
|
meta: { title: '定时任务', keepAlive: false, permission: ['setting'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/setting/queue', |
|
|
|
|
component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/queue'), |
|
|
|
|
meta: { title: '队列服务', keepAlive: false, permission: ['setting'] }, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
meta: { title: '队列服务', keepAlive: false, permission: ['setting'] } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
name: 'Cloud', |
|
|
|
|
path: 'cloud', |
|
|
|
|
redirect: '/cloud/authorize', |
|
|
|
|
component: PageView, |
|
|
|
|
meta: { title: '云服务', keepAlive: false, icon: Icon['access'], permission: ['cloud'] }, |
|
|
|
|
children: [ |
|
|
|
|
// {
|
|
|
|
|
// path: '/cloud/upgrade',
|
|
|
|
|
// component: () => import(/* webpackChunkName: "cloud" */ '@/views/cloud/upgrade'),
|
|
|
|
|
// meta: { title: '在线更新', keepAlive: false, permission: ['cloud'] }
|
|
|
|
|
// name: 'Cloud',
|
|
|
|
|
// path: 'cloud',
|
|
|
|
|
// redirect: '/cloud/authorize',
|
|
|
|
|
// component: PageView,
|
|
|
|
|
// meta: { title: '云服务', keepAlive: false, icon: Icon['access'], permission: ['cloud'] },
|
|
|
|
|
// children: [
|
|
|
|
|
// // {
|
|
|
|
|
// // path: '/cloud/upgrade',
|
|
|
|
|
// // component: () => import(/* webpackChunkName: "cloud" */ '@/views/cloud/upgrade'),
|
|
|
|
|
// // meta: { title: '在线更新', keepAlive: false, permission: ['cloud'] }
|
|
|
|
|
// // },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/cloud/authorize',
|
|
|
|
|
// component: () => import(/* webpackChunkName: "cloud" */ '@/views/cloud/authorize'),
|
|
|
|
|
// meta: { title: '商业授权', keepAlive: false, permission: ['cloud'] },
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
{ |
|
|
|
|
path: '/cloud/authorize', |
|
|
|
|
component: () => import(/* webpackChunkName: "cloud" */ '@/views/cloud/authorize'), |
|
|
|
|
meta: { title: '商业授权', keepAlive: false, permission: ['cloud'] }, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
name: 'Manage', |
|
|
|
@ -194,18 +194,18 @@ export const asyncRouterMap = [ |
|
|
|
|
{ |
|
|
|
|
// name: 'Renew',
|
|
|
|
|
path: 'renew', |
|
|
|
|
component: () => import(/* webpackChunkName: "user" */ '@/views/manage/renew'), |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
component: () => import(/* webpackChunkName: "user" */ '@/views/manage/renew') |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
path: '*', |
|
|
|
|
redirect: '/404', |
|
|
|
|
hidden: true, |
|
|
|
|
}, |
|
|
|
|
hidden: true |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -223,13 +223,13 @@ export const constantRouterMap = [ |
|
|
|
|
// name: 'Login',
|
|
|
|
|
path: 'login', |
|
|
|
|
meta: { title: '超级管理后台' }, |
|
|
|
|
component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login'), |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login') |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
path: '/404', |
|
|
|
|
component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404'), |
|
|
|
|
}, |
|
|
|
|
component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404') |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|