🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-03-06 17:51:13 +08:00
parent ff0807f91b
commit e1d95ca065
1 changed files with 2 additions and 2 deletions

View File

@ -264,11 +264,11 @@
req.axiosPost("/voucher/grant", params) req.axiosPost("/voucher/grant", params)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
self.openErrorDialog('领取成功'); this.openErrorDialog('领取成功');
this.goodInfo.available = 9; this.goodInfo.available = 9;
sessionStorage.setItem('goodInfo', JSON.stringify(this.goodInfo)); sessionStorage.setItem('goodInfo', JSON.stringify(this.goodInfo));
} else { } else {
self.openErrorDialog(res.message); this.openErrorDialog(res.message);
} }
}) })
.catch((err) => { this.loading = false; }); .catch((err) => { this.loading = false; });