Authored by htoooth

add purview

... ... @@ -5,14 +5,22 @@ let purviews = {
subPurviews: {
create: {
name: '发布新商品',
path: '/product/create',
path: '/product/create/step1',
menu: true,
own: true,
subPurviews: {
step1: {
name: '类目选择',
own: true,
}
},
step2: {
name: '基础信息',
own: true,
},
step3: {
name: '网销信息',
own: true,
},
}
},
onsale: {
... ...
... ... @@ -38,7 +38,7 @@
},
methods: {
nextStep: function() {
this.step.value = 1
this.step.value = 1;
this.$router.push({name:'product.create.step2'});
}
}
... ...
... ... @@ -24,7 +24,9 @@ global.yoho = {
};
app.use(session({
secret: 'yoho!shop@manage'
secret: 'yoho!shop@manage',
resave: false,
saveUninitialized: true
}));
app.use(bodyParser.json());
... ... @@ -55,5 +57,5 @@ try {
app.listen(config.port, () => {
logger.log('yoho shop manage start !');
logger.info(`yoho shop manage start at ${config.port}`);
});
... ...