Skip to content

Commit 3f57039

Browse files
lxp17975121gitee-org
authored andcommitted
update src/views/mall/product/spu/form/ProductAttributes.vue.
添加商品属性问题 Signed-off-by: 口口口 <[email protected]>
1 parent d3f38c6 commit 3f57039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const inputRef = ref<any[]>([]) //标签输入框Ref
7474
const setInputRef = (el: any) => {
7575
if (el === null || typeof el === 'undefined') return
7676
// 如果不存在 id 相同的元素才添加
77-
if (!inputRef.value.some((item) => item.input?.attributes.id === el.input?.attributes.id)) {
77+
if (!inputRef.value.some((item) => item.inputRef?.attributes.id === el.inputRef?.attributes.id)) {
7878
inputRef.value.push(el)
7979
}
8080
}

0 commit comments

Comments
 (0)