fix(version): v2.7.2 uniform string changelog in version.json (fix [object Object])
This commit is contained in:
1 parent
5cb3900c67
commit
f99cf440a7
2 files changed
+11
-24
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user