@@ -1180,7 +1180,7 @@
console.log('data', type, data);
this.type = type;
// 优先使用传入数据中的 reportWorkType,否则使用 props 中的值
- const currentReportWorkType = data.reportWorkType || this.reportWorkType;
+ const currentReportWorkType = data?.reportWorkType || this.reportWorkType;
this.form.reportWorkType = currentReportWorkType;
if (type == 'add') {