fix: 代码合并冲突解决

This commit is contained in:
2025-04-16 09:28:58 +08:00
3 changed files with 470 additions and 316 deletions

View File

@@ -267,7 +267,8 @@ async function addConfirm() {
})
obj.productIds = arr
}
if (obj.time.length) {
console.log(obj, '商品分组的参数')
if (obj.time && obj.time.length) {
obj.saleStartTime = obj.time[0]
obj.saleEndTime = obj.time[1]
}
@@ -278,6 +279,10 @@ async function addConfirm() {
myDialogRefAdd.value.close()
}
} else {
if (obj.useTime == 0) {
obj.saleStartTime = null
obj.saleEndTime = null
}
let res = await UserAPI.update(obj)
if (res.code == 200) {
ElMessage.success("编辑成功");