fix: 知识库访问
This commit is contained in:
@@ -24,8 +24,9 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<!-- 引入聊天组件脚本 -->
|
<!-- 引入聊天组件脚本 -->
|
||||||
<script src="https://opendeep.wiki/koala-chat-widget.js"></script>
|
<script async src="https://opendeep.wiki/koala-chat-widget.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
function loadChatWidget() {
|
||||||
KoalaChatWidget.init({
|
KoalaChatWidget.init({
|
||||||
appId: 'ccnetcore',
|
appId: 'ccnetcore',
|
||||||
title: 'ccnetcore',
|
title: 'ccnetcore',
|
||||||
@@ -38,5 +39,9 @@
|
|||||||
console.error('Domain validation failed:', domain);
|
console.error('Domain validation failed:', domain);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
// 页面加载完成后再加载聊天组件
|
||||||
|
window.addEventListener('load', loadChatWidget);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user