diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css
index 13b7378..129415f 100644
--- a/app/server/public/css/style.css
+++ b/app/server/public/css/style.css
@@ -946,7 +946,8 @@ label.icon-btn { cursor: pointer; }
.model-group-badge { font-size: 11px; color: var(--gray); background: var(--surface); border-radius: 9px; padding: 1px 7px; flex-shrink: 0; }
/* 待重启横幅:模型池列表顶部常驻(配置已落盘但未生效时展示) */
.restart-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff8e6; border: 1px solid #f2dfae; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 13px; color: #7a5b00; }
-.restart-bar .primary-btn { flex: none; padding: 7px 16px; font-size: 13px; }
+.restart-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.restart-bar .primary-btn { flex: none; width: auto; padding: 7px 16px; font-size: 13px; white-space: nowrap; }
/* 每 Key 一行余额:左脱敏 key、右余额+刷新 */
.mbal-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px 0; font-size: 12.5px; color: #556; }
.mbal-row:first-child { padding-top: 10px; }
diff --git a/app/server/public/index.html b/app/server/public/index.html
index b8a6d45..0521573 100644
--- a/app/server/public/index.html
+++ b/app/server/public/index.html
@@ -240,18 +240,18 @@
-
API Keys(同平台多 Key 共用下方模型)
+
Key列表
- 仅写入 config.yml。Key 留空=保持原值,输入新值即替换;保存后点页面上的「重启服务」按钮生效。
+ 后仅写入配置,点击「重启服务」后生效。
@@ -2480,6 +2480,8 @@
let drawerWasOpenBeforeSet = false;
function closeSettings() {
SET.stack = []; SET.snaps = {}; setUnderHide();
+ // 退回会话页才重置模型池状态:平台卡全部折叠、余额清空,下次进入重新自动查
+ SET.expandedGroups = {}; SET.balanceByGroup = {}; SET.balanceRequested = {};
$('settings-page').classList.add('hidden');
if (drawerMQ.matches && drawerWasOpenBeforeSet) { openDrawer(true); drawerWasOpenBeforeSet = false; }
}
@@ -3289,9 +3291,9 @@
SET.cfgPlatforms.forEach((p, pi) => { html += modelGroupHtml(pi); });
// 有待重启的变更:列表顶部常驻「重启服务」横幅(增/改/删模型、启停开关、平台弹窗保存均经 afterWrite 置位)
box.innerHTML = (SET.modelsPendingRestart
- ? '配置改动已写入 config.yml,重启后生效
'
+ ? '配置已写入,重启后生效
'
: '') + html +
- 'token 格式为「输入 / 输出」;展开平台卡时按 Key 自动查余额,点刷新图标可重查;点任一模型卡编辑整个平台。
';
+ 'token 显示格式为「输入 / 输出」。
';
} catch (e) {
const box = $('model-cards');
if (box && (!ctx || ctx())) box.innerHTML = '加载失败:' + esc(e.message) + '
';
@@ -3302,9 +3304,7 @@
setActions('');
setBody('');
- // 每次进入本页:余额结果与「已自动查过」标记重置(同 index 的 Tab onShow)
- SET.balanceByGroup = {};
- SET.balanceRequested = {};
+ // 余额与展开态跨设置内导航保持(仅 closeSettings 回会话页时重置),重进本页不重复查余额
loadModelCards(ctx);
}
function idxOf(id) {
@@ -3348,8 +3348,8 @@
// Key 行:全部可编辑。已有 Key 输入框置空 + placeholder 提示当前脱敏值,输入新值=替换,留空=保持。
function pfKeysRowHtml(r, i) {
const ph = r.ref == null
- ? 'api_key(留空则不带鉴权头)'
- : '当前: ' + (r.masked ? maskKey(r.masked) : '无 key') + '(留空保持不变,输入即替换)';
+ ? 'API KEY'
+ : '当前: ' + (r.masked ? maskKey(r.masked) : '无 key');
return '' +
'' +
'' +
@@ -3364,8 +3364,8 @@
'' +
'
' +
'' +
- '' +
- '' +
+ '' +
+ '' +
'
' +
'';
}