Fix:修复某些情况下搜索时数据改变,搜索结果没有更新的问题

This commit is contained in:
街角小林 2024-02-27 09:17:00 +08:00
parent 7e3a1e405e
commit c4a846a195
2 changed files with 4 additions and 0 deletions

View File

@ -118,6 +118,8 @@ class Search {
node => {
if (!(currentNode instanceof Node)) {
this.matchNodeList[this.currentIndex] = node
} else {
this.notResetSearchText = false
}
callback()
// 只读模式下节点无法激活,所以通过高亮的方式

View File

@ -9,3 +9,5 @@ content = content.replace(
`$1'${pkg.version}'$2`
)
fs.writeFileSync(file, content)
console.warn('请注意手绘风格选项是否开启!!!!')