From 70e24b759484eeac52faf52b72009db0feb218c1 Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Thu, 24 Aug 2023 23:24:33 +0800 Subject: [PATCH] fix: loading and calc rem (#1006) --- web/app/components/share/chat/index.tsx | 9 ++++++--- web/app/components/share/chatbot/index.tsx | 7 +++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx index 31bc377668..23fc19936d 100644 --- a/web/app/components/share/chat/index.tsx +++ b/web/app/components/share/chat/index.tsx @@ -570,8 +570,11 @@ const Main: FC = ({ if (appUnavailable) return - if (!appId || !siteInfo || !promptConfig) - return + if (!appId || !siteInfo || !promptConfig) { + return
+ +
+ } return (
@@ -611,7 +614,7 @@ const Main: FC = ({ )} {/* main */}
diff --git a/web/app/components/share/chatbot/index.tsx b/web/app/components/share/chatbot/index.tsx index 5602294c42..a9c77402ee 100644 --- a/web/app/components/share/chatbot/index.tsx +++ b/web/app/components/share/chatbot/index.tsx @@ -494,8 +494,11 @@ const Main: FC = ({ if (appUnavailable) return - if (!appId || !siteInfo || !promptConfig) - return + if (!appId || !siteInfo || !promptConfig) { + return
+ +
+ } return (