Commit b6e42ab9 authored by yaya's avatar yaya

feat:钱币设置分类选择保留

parent da535f6e
...@@ -341,8 +341,10 @@ export default { ...@@ -341,8 +341,10 @@ export default {
this.goodsParams = response.data.data this.goodsParams = response.data.data
this.goodsParams.isStd = response.data.data.isStd === true ? 1 : 0 this.goodsParams.isStd = response.data.data.isStd === true ? 1 : 0
if (this.goodsParams.categoryIds) { if (this.goodsParams.categoryIds && this.goodsParams.categoryIds.length > 0) {
this.categoryIds = this.goodsParams.categoryIds || [] this.categoryIds = this.goodsParams.categoryIds || []
} else if (this.categoryIds && this.categoryIds.length > 0) {
this.goodsParams.cid = this.categoryIds[this.categoryIds.length - 1]
} }
if (response.data.data.images && response.data.data.images.length > 0) { if (response.data.data.images && response.data.data.images.length > 0) {
this.goodsParams.images = response.data.data.images.split(';') || [] this.goodsParams.images = response.data.data.images.split(';') || []
...@@ -371,7 +373,6 @@ export default { ...@@ -371,7 +373,6 @@ export default {
this.blob = '' this.blob = ''
this.blobSecond = '' this.blobSecond = ''
this.compositeImageSrc = '' this.compositeImageSrc = ''
this.categoryIds = []
}, },
// 暂不处理 // 暂不处理
......
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