fix:navigate error when search keyword change

pr675
黄云飞 4 years ago
parent c16d07659a
commit 32277bc60c

@ -34,10 +34,8 @@ export class Search {
public setSearchKeyword(payload: string | null) {
this.searchKeyword = payload
if (!payload) {
this.searchNavigateIndex = null
}
}
public searchNavigatePre(): number | null {
if (!this.searchMatchList.length || !this.searchKeyword) return null

Loading…
Cancel
Save