修改页面显示逻辑

master
于肖磊 2025-06-10 10:08:44 +08:00
parent fba582ba2c
commit 412434b143
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@
if (res.data.code == 0) {
let temp_list = this.data_list;
app.globalData.showToast(res.data.msg, 'success');
if (index) {
if (index == null) {
temp_list = res.data.data.coupon || [];
} else {
temp_list[index] = res.data.data.coupon || {};