fix: bug修改
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user