Skip to content

Commit a5e0c9c

Browse files
committed
🐞 fix(notes): clientOnly 处理部分组件的打包错误。部分组件使用了SSR不友好的window全局变量。
1 parent ab4506a commit a5e0c9c

File tree

2 files changed

+6
-2
lines changed
  • docs/ruan-cat-notes/docs
    • 50projects50days-vue3/06-scroll-animation
    • demo/005-vueuse-scroll-animation

2 files changed

+6
-2
lines changed

docs/ruan-cat-notes/docs/50projects50days-vue3/06-scroll-animation/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import C from "@docs/50projects50days-vue3/06-scroll-animation/scroll-animation.
1313

1414
## 自写重构 demo
1515

16-
<C />
16+
<ClientOnly>
17+
<C />
18+
</ClientOnly>
1719

1820
## 文章教程
1921

docs/ruan-cat-notes/docs/demo/005-vueuse-scroll-animation/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import C from "@docs/demo/005-vueuse-scroll-animation/vueuse-scroll-animation.vu
1313

1414
尝试用 vueuse 改造滚动动画,力求代码编写优雅简洁。
1515

16-
<C />
16+
<ClientOnly>
17+
<C />
18+
</ClientOnly>
1719

1820
## 改造思路
1921

0 commit comments

Comments
 (0)