Commit 9a47a75d authored by Bill's avatar Bill

feat: 添加物料组功能

parent 186aaf24
......@@ -26,7 +26,7 @@ import asyncRoutes from '../router.config.json';
// import contracRoute from './contracRoute';
// export const routes = [CommodityRoute, MemberRoute, ShopRoute, ChannelRoute, TranactionRoute, AfterService, PayandSettleRoute, LogisticsRoute, AuthConfigRoute, HandlingRoute, BalaceRoute]
const isDev = false;
const isDev = true;
const homeRoute = {
path: `/memberCenter/home`,
name: 'home',
......@@ -34,8 +34,8 @@ const homeRoute = {
key: 'home',
component: '@/pages/home',
};
// isDev ? [ homeRoute, OrderRoute ] :
const routes = isDev ? [ homeRoute, OrderRoute ] : asyncRoutes;
const routes = isDev ? [ homeRoute ] : asyncRoutes;
// const routes = isDev ? [ CommodityRoute ] : asyncRoutes;
const memberCenterRoute = {
path: '/memberCenter',
......@@ -45,6 +45,22 @@ const memberCenterRoute = {
path: '/memberCenter',
redirect: '/memberCenter/home',
},
{
path: '/memberCenter/material',
name: '物料',
routes: [
{
path: '/memberCenter/material/group',
name: '物料组',
component: '@/pages/commodity/material/materialGroup',
},
{
path: '/memberCenter/material/props',
name: '物料属性',
component: '@/pages/commodity/material/materialProps'
}
]
},
// {
// path: '/memberCenter/shopAbility',
// redirect: '/memberCenter/shopAbility/infoManage',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment