修复许愿之星礼物过滤问题

This commit is contained in:
liaozetao
2024-04-24 17:56:42 +08:00
parent 8822dedc5e
commit 3e79208ae7

View File

@@ -435,12 +435,13 @@ export default {
// 监听新增礼物价值
// @ts-ignore
giftOptionsChange(e) {
let gifts = this.giftOptions.filter(v => resource.partitionId == null || ((v.partitionFlag & resource.partitionId) != 0));
// @ts-ignore
this.resource.giftId = this.giftOptions[e].giftId;
this.resource.giftId = gifts[e].giftId;
// @ts-ignore
this.resource.giftName = this.giftOptions[e].giftName;
this.resource.giftName = gifts[e].giftName;
// @ts-ignore
this.resource.goldPrice = this.giftOptions[e].goldPrice;
this.resource.goldPrice = gifts[e].goldPrice;
},
// 表单编辑
// @ts-ignore