update:暂时先不调用查询服务器文件接口
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user