去除所有的控制台日志日志

This commit is contained in:
xiaowang
2026-03-04 10:48:29 +08:00
parent 769a736836
commit 074d49c378
19 changed files with 6 additions and 147 deletions
-4
View File
@@ -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('打开编辑模态框失败')