Skip to content

Commit

Permalink
Merge pull request #5551 from GuoLiBin6/fix/glb-to-3.10/src
Browse files Browse the repository at this point in the history
fix: 防止列表初始设置过滤条件时报错
  • Loading branch information
easy-mj authored Oct 19, 2023
2 parents 7f559a5 + 8d0f2e0 commit 59a6669
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SearchBox/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export default {
this.dropdownSearch = e.target.value
},
getItems () {
if (!this.config.items) return []
return this.config.items.filter(v => {
if (!v.label) return true
const label = v.label.toLowerCase()
Expand Down

0 comments on commit 59a6669

Please sign in to comment.