This commit is contained in:
tangly1024.com
2024-09-20 11:55:39 +08:00
parent d309aefca8
commit 6c0882c151

View File

@@ -18,7 +18,7 @@ export default function Coze() {
await loadExternalResource(cozeSrc)
const CozeWebSDK = window?.CozeWebSDK
if (CozeWebSDK) {
new CozeWebSDK.WebChatClient({
const cozeClient = new CozeWebSDK.WebChatClient({
config: {
bot_id: botId
},
@@ -26,6 +26,7 @@ export default function Coze() {
title: title
}
})
console.log('coze', cozeClient)
}
}