update:暂时先不调用查询服务器文件接口

This commit is contained in:
2026-04-16 16:37:19 +08:00
parent 7b93f9ec4e
commit 5242d973a6

View File

@@ -193,21 +193,21 @@ const queryRunDirFun = async (param: any) => {
localParams.folderPath = props.nodeInfo?.outputDirNasPath || '';
}
if (localParams.folderPath) {
const res3: any = await getLocalFilesApi(localParams);
if (res3 && res3.code === 200) {
const data3 = res3.data.map((item: any) => {
return {
...item,
originalName: item.name,
objectKey: item.fullPath.replace('/home/simulation/', ''),
fileSize: Number(item.fileSize) ? item.fileSize : 1024,
localFile: true,
};
});
// res.data.data = res.data.data.concat(data3);
}
}
// if (localParams.folderPath) {
// const res3: any = await getLocalFilesApi(localParams);
// if (res3 && res3.code === 200) {
// const data3 = res3.data.map((item: any) => {
// return {
// ...item,
// originalName: item.name,
// objectKey: item.fullPath.replace('/home/simulation/', ''),
// fileSize: Number(item.fileSize) ? item.fileSize : 1024,
// localFile: true,
// };
// });
// // res.data.data = res.data.data.concat(data3);
// }
// }
return res;
};