搜索索引在运行 npm run build 后生成,本地开发模式下没有搜索结果。可以用 npm run build && npm run preview 预览搜索。
npm run build
npm run build && npm run preview