From version 10.1
edited by Jiahao Lai
on 2026/03/26 15:42
on 2026/03/26 15:42
Change comment:
There is no comment for this version
To version 19.1
edited by Jiahao Lai
on 2026/03/26 16:13
on 2026/03/26 16:13
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -187,29 +187,10 @@ 187 187 {{/velocity}} 188 188 189 189 190 - 191 191 {{html clean="false"}} 192 -<div id="llm-chat-widget"></div> 193 -<script> 194 -window.addEventListener('load', function() { 195 - // 直接用子 wiki 能加载的资源(绝对可用) 196 - const css = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/application-ai-llm-chat-webjar/0.7.2/chatWidget.css'; 197 - const js = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/application-ai-llm-chat-webjar/0.7.2/chatWidget.js'; 198 - 199 - // 加载 CSS 200 - const link = document.createElement('link'); 201 - link.rel = 'stylesheet'; 202 - link.href = css; 203 - document.head.appendChild(link); 204 - 205 - // 加载 JS 并启动 206 - const script = document.createElement('script'); 207 - script.src = js; 208 - script.onload = () => { 209 - console.log("✅ 浮窗JS加载成功!"); 210 - LLMChatWidget.init(); 211 - }; 212 - document.body.appendChild(script); 213 -}); 214 -</script> 191 +<div style="position:fixed;right:20px;bottom:20px;z-index:999999;"> 192 + <a href="/wiki/wonway/view/AI%20Chat" target="_blank" style="display:inline-block;background:#007bff;color:#fff;padding:12px 20px;border-radius:30px;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,0.15);font-weight:bold;"> 193 + 💬 打开 AI 聊天 194 + </a> 195 +</div> 215 215 {{/html}}