提交 7553971b 作者: 毛细亚

fix: 修复svipObj可能为undefined导致的错误

使用可选链操作符安全访问svipObj的属性,避免当svipObj为undefined时访问right_type和select_type属性报错
上级 585f67d2
...@@ -107,8 +107,8 @@ ...@@ -107,8 +107,8 @@
task_id: this.task_id || null, task_id: this.task_id || null,
create_user: this.cser_name, create_user: this.cser_name,
rule: rule, rule: rule,
right_type: this.svipObj.right_type || '', right_type: this.svipObj?.right_type || '',
select_type: this.svipObj.select_type || '' select_type: this.svipObj?.select_type || ''
} }
giftBagApply(data).then(res => { giftBagApply(data).then(res => {
this.loading = false this.loading = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论