From 1008119494d72c97b1d69c8f18caacf94733c395 Mon Sep 17 00:00:00 2001
From: Kirk Lin
Date: Fri, 29 Mar 2024 13:23:18 +0800
Subject: [PATCH] fix: type
---
.../pages/chat/components/ChatPanel/index.vue | 4 +-
.../dashboard/components/DataOverview.vue | 2 +-
.../src/pages/internal/iframe/IframePage.vue | 6 +-
packages/web/hooks/src/useLoading.ts | 9 +-
pnpm-lock.yaml | 753 ++++++++----------
5 files changed, 356 insertions(+), 418 deletions(-)
diff --git a/apps/admin/src/pages/chat/components/ChatPanel/index.vue b/apps/admin/src/pages/chat/components/ChatPanel/index.vue
index 306605df..257259db 100644
--- a/apps/admin/src/pages/chat/components/ChatPanel/index.vue
+++ b/apps/admin/src/pages/chat/components/ChatPanel/index.vue
@@ -7,8 +7,8 @@ defineOptions({
name: "ChatPanel",
});
-const chatWrapperRef = ref();
-const toolbarRef = ref();
+const chatWrapperRef = resolveRef(null);
+const toolbarRef = resolveRef(null);
const { height: wrapperHeight } = useElementSize(chatWrapperRef);
const { height: toolbarHeight } = useElementSize(toolbarRef);
diff --git a/apps/admin/src/pages/dashboard/components/DataOverview.vue b/apps/admin/src/pages/dashboard/components/DataOverview.vue
index 515e411c..370da557 100644
--- a/apps/admin/src/pages/dashboard/components/DataOverview.vue
+++ b/apps/admin/src/pages/dashboard/components/DataOverview.vue
@@ -12,7 +12,7 @@ function tooltipItemsHtmlString(items: ToolTipFormatterParams[]) {
el.color
}" class="tooltip-item-icon">${el.seriesName}
- ${el.value.toLocaleString()}
+ ${el.value?.toLocaleString()}
`,
)
.reverse()
diff --git a/apps/admin/src/pages/internal/iframe/IframePage.vue b/apps/admin/src/pages/internal/iframe/IframePage.vue
index 874c1807..f41e76b4 100644
--- a/apps/admin/src/pages/internal/iframe/IframePage.vue
+++ b/apps/admin/src/pages/internal/iframe/IframePage.vue
@@ -1,14 +1,12 @@