Commit ca700d17bb61ef2e39a4bc86b39f72a07eb5b252
1 parent
4e456e19
解决报错
Showing
1 changed file
with
2 additions
and
2 deletions
src/mes/common/commonOperationBarComponent/index.js
| @@ -1198,7 +1198,7 @@ const CommonOperationBarComponent = basProps => { | @@ -1198,7 +1198,7 @@ const CommonOperationBarComponent = basProps => { | ||
| 1198 | let leftShowTypeProps = { | 1198 | let leftShowTypeProps = { |
| 1199 | app, | 1199 | app, |
| 1200 | record: {}, | 1200 | record: {}, |
| 1201 | - sId: letfSearchField.sId /* 修改当前编号(数据格式:字符串) */, | 1201 | + sId: letfSearchField?.sId /* 修改当前编号(数据格式:字符串) */, |
| 1202 | name: "slave", | 1202 | name: "slave", |
| 1203 | form, | 1203 | form, |
| 1204 | formId: sModelsId, | 1204 | formId: sModelsId, |
| @@ -1220,7 +1220,7 @@ const CommonOperationBarComponent = basProps => { | @@ -1220,7 +1220,7 @@ const CommonOperationBarComponent = basProps => { | ||
| 1220 | formRoute: props.formRoute, | 1220 | formRoute: props.formRoute, |
| 1221 | getDateFormat: props.getDateFormat, | 1221 | getDateFormat: props.getDateFormat, |
| 1222 | bNoMesBlue: true, | 1222 | bNoMesBlue: true, |
| 1223 | - record: props.slaveData[0], | 1223 | + record: props.slaveData?.[0], |
| 1224 | onDropDownBlur: props.onDropDownBlur | 1224 | onDropDownBlur: props.onDropDownBlur |
| 1225 | } | 1225 | } |
| 1226 | return ( | 1226 | return ( |