mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(plugin-search): fix temporary file IO race condition (#861)
This commit is contained in:
parent
09a95b7597
commit
948c31779b
@ -37,9 +37,8 @@ export function searchPlugin({
|
||||
await prepareSearchIndex({ app, isSearchable, searchOptions })
|
||||
}
|
||||
else {
|
||||
const placeholder = prepareSearchIndexPlaceholder(app)
|
||||
await placeholder
|
||||
placeholder.then(() => prepareSearchIndex({ app, isSearchable, searchOptions }))
|
||||
await prepareSearchIndexPlaceholder(app)
|
||||
prepareSearchIndex({ app, isSearchable, searchOptions })
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user