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 |
||
|---|---|---|
| .. | ||
| packages | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| docker-entrypoint.sh | ||
| env.d.ts | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| package.json.md5 | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||