|
@@ -374,7 +374,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
const matched = item.label.includes(searchValue)
|
|
const matched = item.label.includes(searchValue)
|
|
- if (matched) {
|
|
|
|
|
|
+ if (matched && searchValue) {
|
|
item.name = item.label.replace(
|
|
item.name = item.label.replace(
|
|
searchValue,
|
|
searchValue,
|
|
`<span class="highlight-text">${searchValue}</span>`
|
|
`<span class="highlight-text">${searchValue}</span>`
|