Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -52,10 +52,10 @@ |
| 52 | 52 | await nextTick(() => { |
| 53 | 53 | //拆分"xx,xx,xx"多个 |
| 54 | 54 | const getSingleKey = props.data?.list; |
| 55 | - const getMuteKey = props.data?.list?.filter((it: any) => it.key.split(',').length > 1); | |
| 55 | + const getMuteKey = props.data?.list?.filter((it: any) => it.key?.split(',').length > 1); | |
| 56 | 56 | const getMuteKeys = getMultipleKeys(getMuteKey); |
| 57 | 57 | const mergeKeys = [...getSingleKey, ...getMuteKeys]?.filter( |
| 58 | - (it: any) => it.key.split(',').length === 1 | |
| 58 | + (it: any) => it.key?.split(',').length === 1 | |
| 59 | 59 | ); |
| 60 | 60 | testEditCellTableRef.value?.setTableArray(mergeKeys); |
| 61 | 61 | }); | ... | ... |