fix: 去掉双滚动条;顶栏新增开源地址与导航站链接

This commit is contained in:
jinghui committed 2026-10-27 09:10:32 +08:00
1 parent d4548da464
commit 9ed390830a
6 files changed
+48 -2

No files matched your search

+2
View File
@@ -39,6 +39,7 @@ const DEFAULT_SETTINGS = {
webhook: '',
notify: true,
debounceMinutes: 10,
links: { repo: '', nav: '' },
};
let settings = JSON.parse(JSON.stringify(DEFAULT_SETTINGS));
try {
@@ -935,6 +936,7 @@ app.post('/api/settings', (req, res) => {
webhook: b.webhook !== undefined ? String(b.webhook).trim() : settings.webhook,
notify: b.notify !== undefined ? !!b.notify : settings.notify,
debounceMinutes: b.debounceMinutes !== undefined ? (Number(b.debounceMinutes) || 10) : settings.debounceMinutes,
links: { ...(settings.links || {}), ...(b.links || {}) },
};
saveSettings();
res.json(settings);