Authored by 陈峰

Merge branch 'master' into release/1.0

... ... @@ -50,7 +50,7 @@ export default {
let mid = value[1];
let min = value[2];
if (!max.value) {
if (!max || !max.value) {
return callback(new Error('一级类目不能为空'));
} else if (!mid.value) {
... ... @@ -84,6 +84,8 @@ export default {
this.$refs.formData.validate((valid) => {
if (valid) {
this.goNext();
} else {
this.$Message.error('请填写必填项!');
}
});
},
... ...
... ... @@ -449,7 +449,7 @@ export default {
this.beforeSubmit();
return api.saveBaseProductInfo(this.product);
}, () => {
this.$Message.error('表单验证失败!');
this.$Message.error('请填写必填项!');
});
},
nextStep: function(go) {
... ...
... ... @@ -509,7 +509,7 @@ export default {
if (r1 & r2) {
return Promise.resolve();
} else {
this.$Message.error('验证未通过');
this.$Message.error('请填写必填项');
return Promise.reject();
}
})
... ...
... ... @@ -103,7 +103,7 @@
return service.getCategoryList(this.pageData.current, this.pageData.pageSize).then((result) => {
if (result.code === 200) {
this.pageData.total = result.data.total;
this.pageData.current = result.data.currentPage;
this.pageData.current = result.data.currentPage || 1;
this.tableData = result.data.rows;
}
});
... ...
{
"name": "yoho-shop-manage",
"version": "1.0.5",
"version": "1.0.6",
"description": "",
"main": "app.js",
"scripts": {
... ...