We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc7f06 commit b150fd9Copy full SHA for b150fd9
website/.vitepress/theme/index.ts
@@ -1,4 +1,5 @@
1
import { NolebaseInlineLinkPreviewPlugin } from '@nolebase/vitepress-plugin-inline-link-preview/client'
2
+import { ClientOnly } from 'vitepress'
3
import DefaultTheme from 'vitepress/theme'
4
import type { App } from 'vue'
5
import { h } from 'vue'
website/components/ChatBotButton.vue
@@ -33,8 +33,8 @@ const buttonRightDistance = ref(20);
33
const buttonBottomDistance = ref(20);
34
35
// window size
36
-const windowWidth = ref(window.innerWidth);
37
-const windowHeight = ref(window.innerHeight);
+const windowWidth = ref(0);
+const windowHeight = ref(0);
38
39
// update window size and buttonRightDistance
40
const updateWindowSize = () => {
0 commit comments