fix: change version name
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user