diff --git a/app/static/app.js b/app/static/app.js index 6238bf5..b74b5d2 100644 --- a/app/static/app.js +++ b/app/static/app.js @@ -129,6 +129,15 @@ return { color, abbr }; } + /* 品牌图标 badge:有内嵌 SVG 显示真实图标,否则品牌色 + 缩写 */ + function badgeHtml(iconKey, color, abbr) { + const svg = BRAND_ICONS[iconKey]; + if (!svg) { + return `${escapeHtml(abbr)}`; + } + return ``; + } + /* ---------- 视图/状态 ---------- */ function switchView(name) { @@ -209,7 +218,7 @@ return `