fix: 代码合并冲突解决
This commit is contained in:
@@ -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("编辑成功");
|
||||
|
||||
Reference in New Issue
Block a user