fix(workflow): should change letter to lower case when searching in Add block

This commit is contained in:
Rain 2023-09-26 12:47:39 +08:00
parent ff16f59908
commit a56e4d1ec6
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export default {
},
loadChildren: ({ searchValue }) => {
return collections
.filter((item) => !item.hidden && item.title.includes(searchValue))
.filter((item) => !item.hidden && item.title.toLowerCase().includes(searchValue.toLowerCase()))
.map((item) => ({
key: `createRecordForm-child-${item.name}`,
type: 'item',

View File

@ -85,7 +85,7 @@ export default {
},
loadChildren: ({ searchValue }) => {
return collections
.filter((item) => !item.hidden && item.title.includes(searchValue))
.filter((item) => !item.hidden && item.title.toLowerCase().includes(searchValue.toLowerCase()))
.map((item) => ({
key: `updateRecordForm-child-${item.name}`,
type: 'item',