feat: 支持拼音搜索
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m38s

- 使用pinyin-pro进行汉语拼音转换
- 调整搜索权重
This commit is contained in:
2025-11-10 15:39:47 +08:00
parent 4c8dfb5b56
commit 710a0cdc5b
6 changed files with 71 additions and 4 deletions

8
pnpm-lock.yaml generated
View File

@ -62,6 +62,9 @@ importers:
nuxt-directus:
specifier: 5.7.0
version: 5.7.0(magicast@0.3.5)
pinyin-pro:
specifier: ^3.27.0
version: 3.27.0
sass:
specifier: ^1.90.0
version: 1.92.1
@ -4399,6 +4402,9 @@ packages:
typescript:
optional: true
pinyin-pro@3.27.0:
resolution: {integrity: sha512-Osdgjwe7Rm17N2paDMM47yW+jUIUH3+0RGo8QP39ZTLpTaJVDK0T58hOLaMQJbcMmAebVuK2ePunTEVEx1clNQ==}
pkg-types@1.3.1:
resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
@ -10618,6 +10624,8 @@ snapshots:
optionalDependencies:
typescript: 5.9.2
pinyin-pro@3.27.0: {}
pkg-types@1.3.1:
dependencies:
confbox: 0.1.8