mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
feat(plugin-md-power): improve async import for ssr
This commit is contained in:
parent
8111351224
commit
6bbfc031fb
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user