From version 13.1
edited by Jiahao Lai
on 2026/03/26 15:47
on 2026/03/26 15:47
Change comment:
There is no comment for this version
To version 34.1
edited by xingzhi lin
on 2026/04/10 11:01
on 2026/04/10 11:01
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Jim2581 +XWiki.lxz - Content
-
... ... @@ -186,61 +186,97 @@ 186 186 {{/html}} 187 187 {{/velocity}} 188 188 189 += Inverter = 189 189 190 190 192 + 191 191 {{html clean="false"}} 192 -<div id="llm-chat-widget" style="position:fixed;right:20px;bottom:20px;z-index:9999;"></div> 194 +<div class="row"> 195 +<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> 196 +<div class="well"> 197 +<div> 198 +<a href="https://docs.we-con.com.cn/bin/view/VFD/VM%20AC%20Drive%20User%20Manual/"> 199 +<span class="icon fa fa-file-text-o"></span> 200 +Manual 201 +</a> 202 +</div> 203 +<p class="noitems"> 204 +Mainly software configuration manuals 205 +</p> 206 +<ul class="noitems"> 207 +<li> 208 +<a href="https://docs.we-con.com.cn/bin/view/VFD/VM%20AC%20Drive%20User%20Manual/" class="wikiexternallink"> 209 +Learn more 210 +</a> 211 +</li> 212 +</ul> 213 +</div> 214 +</div> 215 +<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> 216 +<div class="well"> 217 +<div> 218 +<a href="https://docs.we-con.com.cn/bin/view/VFD/3.%20Demo/"> 219 +<span class="icon fa fa-support"></span> 220 +Demo 221 +</a> 222 +</div> 223 +<p class="noitems"> 224 +Abundant functions are demonstrated through different demo 225 +</p> 226 +<ul class="noitems"> 227 +<li> 228 +<a href="https://docs.we-con.com.cn/bin/view/VFD/3.%20Demo/" class="wikiexternallink"> 229 +Learn more 230 +</a> 231 +</li> 232 +</ul> 233 +</div> 234 +</div> 235 +<div class="clearfix visible-sm-block "></div> 236 +<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> 237 +<div class="well"> 238 +<div> 239 +<a href="https://www.youtube.com/playlist?list=PL_Bpnb2RgaktOITeNo-g3fq0jBFoubYGz"> 240 +<span class="icon fa fa-play-circle"></span> 241 +Videos 242 +</a> 243 +</div> 244 +<p class="noitems"> 245 +Video shows function more clearly 246 +</p> 247 +<ul class="noitems"> 248 +<li> 249 +<a href="https://www.youtube.com/playlist?list=PL_Bpnb2RgaktOITeNo-g3fq0jBFoubYGz" class="wikiexternallink"> 250 +Learn more 251 +</a> 252 +</li> 253 +</ul> 254 +</div> 255 +</div> 256 +<div class="clearfix visible-md-block"></div> 257 +<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> 258 +<div class="well"> 259 +<div> 260 +<a href="https://docs.we-con.com.cn/bin/view/VFD/Download/"> 261 +<span class="icon fa fa-download"></span> 262 +Download 263 +</a> 264 +</div> 265 +<p class="noitems"> 266 +Software Download 267 +</p> 268 +<ul class="noitems"> 269 +<li> 270 +<a href="https://docs.we-con.com.cn/bin/view/VFD/Download/" class="wikiexternallink"> 271 +Learn more 272 +</a> 273 +</li> 274 +</ul> 275 +</div> 276 +</div> 277 +</div> 193 193 194 -<script> 195 -document.addEventListener('DOMContentLoaded', function() { 196 - // 延长等待时间,确保配置和依赖完全加载 197 - setTimeout(async () => { 198 - try { 199 - // 1. 加载 marked.js 依赖 200 - await new Promise((resolve) => { 201 - const s = document.createElement('script'); 202 - s.src = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/marked/4.0.2/marked.min.js'; 203 - s.onload = resolve; 204 - document.body.appendChild(s); 205 - }); 206 - 207 - // 2. 加载 CSS 208 - await new Promise((resolve) => { 209 - const l = document.createElement('link'); 210 - l.rel = 'stylesheet'; 211 - l.href = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/application-ai-llm-chat-webjar/0.7.2/chatWidget.css'; 212 - l.onload = resolve; 213 - document.head.appendChild(l); 214 - }); 215 - 216 - // 3. 加载 chatWidget.js 217 - await new Promise((resolve) => { 218 - const s = document.createElement('script'); 219 - s.src = 'https://docs.we-con.com.cn/webjars/wiki%3Awonway/application-ai-llm-chat-webjar/0.7.2/chatWidget.js'; 220 - s.onload = resolve; 221 - document.body.appendChild(s); 222 - }); 223 - 224 - // 4. 循环等待,直到 LLM 配置就绪 225 - let retries = 0; 226 - const maxRetries = 20; // 最多等 20*200ms = 4秒 227 - const waitForLLM = () => { 228 - if (window.LLMChatWidget && typeof LLMChatWidget.init === 'function') { 229 - LLMChatWidget.init(); 230 - console.log("✅ 浮窗启动成功!"); 231 - } else if (retries < maxRetries) { 232 - retries++; 233 - setTimeout(waitForLLM, 200); 234 - } else { 235 - throw new Error("LLM 配置超时未就绪"); 236 - } 237 - }; 238 - waitForLLM(); 239 - } catch (e) { 240 - console.error("❌ 最终失败", e); 241 - alert("浮窗加载失败:" + (e.message || "未知错误")); 242 - } 243 - }, 1500); // 延长初始等待时间 244 -}); 245 -</script> 279 +## 强制加载LLM聊天弹窗JS 280 +$xwiki.jsfx.use('js/plugins/llm/chat.js', true) 281 +$xwiki.ssfx.use('css/plugins/llm/chat.css', true) 246 246 {{/html}}