|
@@ -11,6 +11,9 @@ const Goods = () => import('../pages/goods-manage')
|
|
const GoodsList = () => import('../pages/goods-manage/goods-list')
|
|
const GoodsList = () => import('../pages/goods-manage/goods-list')
|
|
const GoodsClassify = () => import('../pages/goods-manage/goods-classify')
|
|
const GoodsClassify = () => import('../pages/goods-manage/goods-classify')
|
|
|
|
|
|
|
|
+/* 系统管理 */
|
|
|
|
+const System = () => import('../pages/system')
|
|
|
|
+
|
|
/* 需要权限判断的路由 */
|
|
/* 需要权限判断的路由 */
|
|
const dynamicRoutes = [
|
|
const dynamicRoutes = [
|
|
{
|
|
{
|
|
@@ -23,7 +26,7 @@ const dynamicRoutes = [
|
|
},
|
|
},
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
- path: 'list',
|
|
|
|
|
|
+ path: '/orderlist',
|
|
name: 'order-list',
|
|
name: 'order-list',
|
|
component: OrderList,
|
|
component: OrderList,
|
|
meta: {
|
|
meta: {
|
|
@@ -32,7 +35,7 @@ const dynamicRoutes = [
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- path: 'product',
|
|
|
|
|
|
+ path: '/product',
|
|
name: 'product-manage',
|
|
name: 'product-manage',
|
|
component: ProductManage,
|
|
component: ProductManage,
|
|
meta: {
|
|
meta: {
|
|
@@ -41,7 +44,7 @@ const dynamicRoutes = [
|
|
},
|
|
},
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
- path: 'list',
|
|
|
|
|
|
+ path: '/productlist',
|
|
name: 'product-list',
|
|
name: 'product-list',
|
|
component: ProductionList,
|
|
component: ProductionList,
|
|
meta: {
|
|
meta: {
|
|
@@ -50,7 +53,7 @@ const dynamicRoutes = [
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- path: 'review',
|
|
|
|
|
|
+ path: '/review',
|
|
name: 'review-manage',
|
|
name: 'review-manage',
|
|
component: ReviewManage,
|
|
component: ReviewManage,
|
|
meta: {
|
|
meta: {
|
|
@@ -61,7 +64,7 @@ const dynamicRoutes = [
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- path: 'returnGoods',
|
|
|
|
|
|
+ path: '/returnGoods',
|
|
name: 'return-goods',
|
|
name: 'return-goods',
|
|
component: ReturnGoods,
|
|
component: ReturnGoods,
|
|
meta: {
|
|
meta: {
|
|
@@ -81,7 +84,7 @@ const dynamicRoutes = [
|
|
},
|
|
},
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
- path: 'list',
|
|
|
|
|
|
+ path: '/goodslist',
|
|
name: 'goods-list',
|
|
name: 'goods-list',
|
|
component: GoodsList,
|
|
component: GoodsList,
|
|
meta: {
|
|
meta: {
|
|
@@ -90,7 +93,7 @@ const dynamicRoutes = [
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- path: 'classify',
|
|
|
|
|
|
+ path: '/classify',
|
|
name: 'goods-classify',
|
|
name: 'goods-classify',
|
|
component: GoodsClassify,
|
|
component: GoodsClassify,
|
|
meta: {
|
|
meta: {
|
|
@@ -99,7 +102,17 @@ const dynamicRoutes = [
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: '/system',
|
|
|
|
+ component: System,
|
|
|
|
+ name: 'system',
|
|
|
|
+ meta: {
|
|
|
|
+ name: '系统管理',
|
|
|
|
+ icon: 'icon-email'
|
|
|
|
+ },
|
|
}
|
|
}
|
|
|
|
+
|
|
]
|
|
]
|
|
|
|
|
|
export default dynamicRoutes
|
|
export default dynamicRoutes
|