chat-base

This commit is contained in:
tangly1024
2023-07-18 12:06:43 +08:00
parent 982087532f
commit 7b1baa3d15
4 changed files with 33 additions and 3 deletions

View File

@@ -7,6 +7,18 @@ import BLOG from '@/blog.config'
*/
const CommonScript = () => {
return (<>
{BLOG.CHATBASE_ID && (<>
<script id={BLOG.CHATBASE_ID} src="https://www.chatbase.co/embed.min.js" defer/>
<script async dangerouslySetInnerHTML={{
__html: `
window.chatbaseConfig = {
chatbotId: "${BLOG.CHATBASE_ID}",
}
`
}}/>
</>)}
{BLOG.COMMENT_DAO_VOICE_ID && (<>
{/* DaoVoice 反馈 */}
<script async dangerouslySetInnerHTML={{