feat(plugin-md-power): improve async import for ssr

This commit is contained in:
pengzhanbo 2025-04-16 00:23:01 +08:00
parent 8111351224
commit 6bbfc031fb

View File

@ -31,6 +31,9 @@ const { el, width, height, resize } = useSize<HTMLDivElement>(toRefs(props))
let player: ArtPlayer | null = null
async function createPlayer() {
if (__VUEPRESS_SSR__)
return
if (!el.value)
return