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

类目管理 缩略图非必传

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