fix: bug修改

This commit is contained in:
xuziqiang
2024-07-25 15:54:15 +08:00
parent 2d96bbda3b
commit bbed0e3ff3
2 changed files with 11 additions and 9 deletions

View File

@@ -159,7 +159,7 @@ export const tableConfig = (orgId) => {
// labelField: 'deviceName',
// valueField: 'deviceName',
filterOption: (input: string, option: any) => {
return option.deviceName.toLowerCase().indexOf(input.toLowerCase()) >= 0;
return option.deviceName?.toLowerCase().indexOf(input.toLowerCase()) >= 0;
},
showSearch: true,
immediate: true,
@@ -231,7 +231,7 @@ export const tableConfig = (orgId) => {
// labelField: 'manufacturer',
// valueField: 'manufacturer',
filterOption: (input: string, option: any) => {
return option.manufacturer.toLowerCase().indexOf(input.toLowerCase()) >= 0;
return option.manufacturer?.toLowerCase().indexOf(input.toLowerCase()) >= 0;
},
showSearch: true,
immediate: true,