fix:navigate error when search keyword change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user