Skip to content

Commit 5c7796c

Browse files
author
puhui999
committed
商品列表:修复添加属性时会返回已存在属性值的问题
1 parent f5a1772 commit 5c7796c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/views/mall/product/spu/form/ProductPropertyAddForm.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ const submitForm = async () => {
8080
if (res[0].values === null) {
8181
res[0].values = []
8282
}
83+
// 不需要属性值
84+
res[0].values = []
8385
attributeList.value.push(res[0]) // 因为只用一个
8486
}
8587
message.success(t('common.createSuccess'))

0 commit comments

Comments
 (0)