fix(version): v2.7.2 uniform string changelog in version.json (fix [object Object])

This commit is contained in:
sorcier committed 2026-11-12 11:57:57 +01:00
1 parent 5cb3900c67
commit f99cf440a7
2 files changed
+11 -24

No files matched your search

+6 -1
View File
@@ -6330,7 +6330,12 @@ async function checkSystemUpdate(notify = false) {
if (pingDot) pingDot.classList.remove('hidden');
if (changelogList && Array.isArray(data.changelog) && data.changelog.length > 0) {
changelogList.innerHTML = data.changelog.map(item => `<li>${escapeHtml(item)}</li>`).join('');
changelogList.innerHTML = data.changelog.flatMap(item => {
if (item && typeof item === 'object' && Array.isArray(item.changes)) {
return item.changes.map(c => `<li>${escapeHtml(String(c))}</li>`);
}
return [`<li>${escapeHtml(String(item ?? ''))}</li>`];
}).join('');
if (changelogContainer) changelogContainer.classList.remove('hidden');
}
} else {