fix: change version name

This commit is contained in:
2025-04-03 21:23:17 +08:00
parent d97053a443
commit 4aaf791801
7 changed files with 57 additions and 10 deletions

View File

@@ -299,7 +299,7 @@ app
app
.route({
path: 'app',
key: 'detect-version-list',
key: 'detectVersionList',
description: '检测版本列表minio中的数据自己上传后根据版本信息进行替换',
middleware: ['auth'],
})
@@ -332,7 +332,7 @@ app
let appListFiles = appList.data?.files || [];
const needAddFiles = newFiles.map((item) => {
const findFile = appListFiles.find((appListFile) => appListFile.name === item.name);
if (findFile && findFile.path === item.path) {
if (findFile && findFile.name === item.name) {
return { ...findFile, ...item };
}
return item;