From 8bfda86c7ad46c79ae668a29849da885d8b890b4 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 18 Jul 2023 12:26:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4iframe4chatbase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ChatBase.js | 5 +++++ components/ExternalPlugins.js | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/ChatBase.js b/components/ChatBase.js index c658afbf..5decc833 100644 --- a/components/ChatBase.js +++ b/components/ChatBase.js @@ -1,5 +1,10 @@ import BLOG from '@/blog.config' +/** + * 这是一个嵌入组件,可以在任意位置全屏显示您的chat-base对话框 + * 暂时没有页面引用 + * 因为您可以直接用内嵌网页的方式放入您的notion中 https://www.chatbase.co/chatbot-iframe/${BLOG.CHATBASE_ID} + */ export default function ChatBase() { if (!BLOG.CHATBASE_ID) { return <> diff --git a/components/ExternalPlugins.js b/components/ExternalPlugins.js index e9b0f932..867bb32b 100644 --- a/components/ExternalPlugins.js +++ b/components/ExternalPlugins.js @@ -1,6 +1,5 @@ import BLOG from 'blog.config' import dynamic from 'next/dynamic' -import ChatBase from './ChatBase' // import TwikooCommentCounter from '@/components/TwikooCommentCounter' // import { DebugPanel } from '@/components/DebugPanel' @@ -54,7 +53,6 @@ const ExternalPlugin = (props) => { {JSON.parse(BLOG.FLUTTERINGRIBBON) && } {JSON.parse(BLOG.COMMENT_TWIKOO_COUNT_ENABLE) && } {JSON.parse(BLOG.RIBBON) && } - {BLOG.CHATBASE_ID && } }