Рефакторинг versionHistory, небольшие поправки

This commit is contained in:
Book Pauk
2022-03-29 17:37:24 +07:00
parent c4a280f3d8
commit 5c48ca9e6c
6 changed files with 170 additions and 66 deletions

View File

@@ -33,14 +33,15 @@ class VersionHistoryPage {
mounted() {
let vh = [];
for (const version of versionHistory) {
vh.push(version.header);
for (const v of versionHistory) {
vh.push(`${v.version} (${v.releaseDate})`);
}
this.versionHeader = vh;
let vc = [];
for (const version of versionHistory) {
vc.push({key: version.header, content: 'Версия ' + version.header + version.content});
for (const v of versionHistory) {
let header = `${v.version} (${v.releaseDate})`;
vc.push({key: header, content: 'Версия ' + header + v.content});
}
this.versionContent = vc;
}