diff --git a/src/pages/gateway.js b/src/pages/gateway.js index 39f4859..9f29e95 100644 --- a/src/pages/gateway.js +++ b/src/pages/gateway.js @@ -6,6 +6,7 @@ import { toast } from '../components/toast.js' import { humanizeError } from '../lib/humanize-error.js' import { tryShowEngagement } from '../components/engagement.js' import { t } from '../lib/i18n.js' +import { termHelpHtml, attachTermTooltips } from '../lib/term-tooltip.js' // 兼容新版 SecretRef:token 可能是 string 或 { $env: "VAR" } / { $ref: "x/y" } function _tokenDisplayStr(token) { diff --git a/src/pages/models.js b/src/pages/models.js index f085694..e30ccb6 100644 --- a/src/pages/models.js +++ b/src/pages/models.js @@ -10,6 +10,7 @@ import { icon, statusIcon } from '../lib/icons.js' import { API_TYPES, PROVIDER_PRESETS, QTCOOL, MODEL_PRESETS, fetchQtcoolModels } from '../lib/model-presets.js' import { t } from '../lib/i18n.js' import { scheduleGatewayRestart, fireRestartNow, cancelPendingRestart, onRestartState } from '../lib/gateway-restart-queue.js' +import { termHelpHtml, attachTermTooltips } from '../lib/term-tooltip.js' // HTML 转义,防止错误信息中的特殊字符破坏页面或被注入 function escapeHtml(str) {