Commit 07ca2fe6 authored by 王伟's avatar 王伟

类目管理 缩略图非必传

parent 924ade73
......@@ -326,8 +326,8 @@ export default {
},
// 添加商品目录
updateCategory () {
if (this.thum.length == 0 || !this.addCate.name) {
this.$Message.warning(`所有项均为必填项哦!`)
if (!this.addCate.name) {
this.$Message.warning(`请填写类目名称!`)
return
}
// this.updatePwdLoading = true
......@@ -347,13 +347,13 @@ export default {
},
// 修改商品类目
eidotCategory () {
if (this.thum.length == 0 || !this.eidtCate.name) {
this.$Message.warning(`所有项均为必填项哦!`)
if (!this.eidtCate.name) {
this.$Message.warning(`请填写类目名称!`)
return
}
// this.updatePwdLoading = true
this.eidtCate.thumb = this.thum[0]
console.log('addCate', this.eidtCate)
// console.log('addCate', this.eidtCate)
this.api({
apiName: 'categoryUpdate',
postdata: this.eidtCate,
......
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