fix: 操作ldrs

This commit is contained in:
Tim
2025-08-07 20:07:37 +08:00
parent cfdd257b9a
commit 73b9dcf0cd
9 changed files with 158 additions and 36 deletions

View File

@@ -0,0 +1,12 @@
// plugins/ldrs.client.ts
import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin(async () => {
// 动态引入,防止打包时把 ldrs 拉进 SSR bundle
const { hatch, helix, spiral } = await import('ldrs')
// 想用几个就注册几个
hatch.register()
helix.register()
spiral.register()
})