feat: 分组追加商品修复

This commit is contained in:
duan
2025-03-18 16:04:30 +08:00
parent 14d3ffb4cf
commit 188aad8035
6 changed files with 17 additions and 35 deletions

View File

@@ -270,7 +270,14 @@ async function addConfirm() {
}
// 添加商品的回调
function subitgood() {
selectData.value = contentRefs.value.getselectTable()
if (title.value == "编辑分组") {
let arr = selectData.value
arr.push(...contentRefs.value.getselectTable())
selectData.value = arr
} else {
selectData.value = contentRefs.value.getselectTable()
}
switchref.value = false
myDialogRef.value.close()
}