Skip to content

Commit b150fd9

Browse files
committed
ci: fix website building error
1 parent 0bc7f06 commit b150fd9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

website/.vitepress/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { NolebaseInlineLinkPreviewPlugin } from '@nolebase/vitepress-plugin-inline-link-preview/client'
2+
import { ClientOnly } from 'vitepress'
23
import DefaultTheme from 'vitepress/theme'
34
import type { App } from 'vue'
45
import { h } from 'vue'

website/components/ChatBotButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const buttonRightDistance = ref(20);
3333
const buttonBottomDistance = ref(20);
3434
3535
// window size
36-
const windowWidth = ref(window.innerWidth);
37-
const windowHeight = ref(window.innerHeight);
36+
const windowWidth = ref(0);
37+
const windowHeight = ref(0);
3838
3939
// update window size and buttonRightDistance
4040
const updateWindowSize = () => {

0 commit comments

Comments
 (0)