diff --git a/src/views/modules/shop/shopproduct-add-or-update.vue b/src/views/modules/shop/shopproduct-add-or-update.vue index 2f555cc..1943e93 100644 --- a/src/views/modules/shop/shopproduct-add-or-update.vue +++ b/src/views/modules/shop/shopproduct-add-or-update.vue @@ -324,8 +324,7 @@ }, methods: { handleCheckedCitiesChange(value) { - console.log(value, 'value') - this.dataForm.tagList = value + console.log(value, 'value') }, // 获取商品标签 getTags() { @@ -352,6 +351,7 @@ init(id) { this.dataForm.productId = id || 0 this.visible = true + this.getTags() this.$nextTick(() => { this.$refs['dataForm'].resetFields() if (this.dataForm.productId) { @@ -486,7 +486,7 @@ 'author': this.dataForm.author, 'publisher': this.dataForm.publisher, 'pubDate': this.dataForm.pubDate, - 'shoproudLabels': this.dataForm.tagList, + 'shoproudLabels': this.dataForm.tags, // 'format': this.dataForm.format, // 开本 'isFreeMail': this.dataForm.isFreeMail, // 'pageNum': this.dataForm.pageNum,