chore: tweak

This commit is contained in:
pengzhanbo 2025-09-20 14:05:18 +08:00
parent 3523df74db
commit 2bb5625eb4
2 changed files with 2 additions and 10 deletions

View File

@ -13,10 +13,7 @@ export function useSearchIndex(): ShallowRef<SearchIndexData> {
}
if (__VUEPRESS_DEV__ && (import.meta.webpackHot || import.meta.hot)) {
__VUE_HMR_RUNTIME__.updateSearchIndex = (data) => {
searchIndexData.value = data
}
__VUE_HMR_RUNTIME__.updateSearchIndex = (data) => {
__VUE_HMR_RUNTIME__.updateSearchIndex = (data: SearchIndexData) => {
searchIndexData.value = data
}
}

View File

@ -1,8 +1,3 @@
import { searchPlugin } from './searchPlugin.js'
export * from '../shared/index.js'
export { prepareSearchIndex } from './prepareSearchIndex.js'
export {
searchPlugin,
}
export { searchPlugin } from './searchPlugin.js'