去除所有的控制台日志日志
This commit is contained in:
@@ -527,7 +527,6 @@ const showAddModal = () => {
|
||||
}
|
||||
|
||||
const showEditModal = (record: Coupon) => {
|
||||
console.log('showEditModal called with record:', record)
|
||||
if (!record) {
|
||||
message.error('优惠券数据不存在')
|
||||
return
|
||||
@@ -535,7 +534,6 @@ const showEditModal = (record: Coupon) => {
|
||||
try {
|
||||
isEdit.value = true
|
||||
currentCoupon.value = record
|
||||
console.log('Form state before:', formState)
|
||||
Object.assign(formState, {
|
||||
couponCode: record.couponCode || '',
|
||||
couponName: record.couponName || '',
|
||||
@@ -550,9 +548,7 @@ const showEditModal = (record: Coupon) => {
|
||||
unavailableTagIds: record.unavailableTags ? record.unavailableTags.map(tag => tag.id) : [],
|
||||
shopId: record.shopId
|
||||
})
|
||||
console.log('Form state after:', formState)
|
||||
modalVisible.value = true
|
||||
console.log('Modal visible set to:', modalVisible.value)
|
||||
} catch (error) {
|
||||
console.error('Error in showEditModal:', error)
|
||||
message.error('打开编辑模态框失败')
|
||||
|
||||
Reference in New Issue
Block a user