优化一些问题

This commit is contained in:
xiaowang
2026-03-02 10:13:20 +08:00
parent c95394260d
commit b9599b3ece
14 changed files with 256 additions and 331 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ const filteredCoupons = computed(() => {
const loadCoupons = async () => {
loading.value = true
try {
const data = await couponApi.listUserCoupons()
coupons.value = data
const response = await couponApi.listUserCoupons() as any
coupons.value = response || []
} catch (error) {
console.error('获取优惠券列表失败:', error)
message.error('获取优惠券列表失败')