mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-09-19 02:18:25 +08:00
The <t-icon> component from tdesign-vue-next lazily loads its SVG sprite from https://tdesign.gtimg.com/icon/<ver>/fonts/index.js at runtime. In air-gapped or intranet deployments this request fails and the whole UI loses its icons (agent cards, knowledge-base breadcrumbs/cards, upload buttons, etc.). Ship the sprite (tdesign-icons-vue-next@0.4.1) as a static asset under frontend/public/tdesign-icons/0.4.1/fonts/index.js and preload it from index.html so every <t-icon name="..."> resolves against local symbols. An offline guard injects stub <script>/<link> nodes that match tdesign's dedup selectors, so checkScriptAndLoad / checkLinkAndLoad short-circuit without ever hitting the CDN (covers both the 0.4.0 and 0.4.1 hardcoded URLs for forward-compat). Closes #867 Closes #897