Commit e290d95b authored by chenshouchao's avatar chenshouchao

fix: 解决文件路径修改后导致任务详情结果文件获取失败的问题

parent 05e19297
...@@ -164,7 +164,7 @@ const ProjectSubmitWork = observer(() => { ...@@ -164,7 +164,7 @@ const ProjectSubmitWork = observer(() => {
}; };
const getDataSetSize = async (item: any, index: number) => { const getDataSetSize = async (item: any, index: number) => {
let path = item.path.slice(13); let path = item.path.slice(12);
const lastIndex = path.lastIndexOf("/"); const lastIndex = path.lastIndexOf("/");
if (lastIndex === -1) { if (lastIndex === -1) {
path = "/"; path = "/";
...@@ -184,7 +184,7 @@ const ProjectSubmitWork = observer(() => { ...@@ -184,7 +184,7 @@ const ProjectSubmitWork = observer(() => {
}; };
const getFileSize = (item: any, index: number) => { const getFileSize = (item: any, index: number) => {
let path = item.path.slice(13); let path = item.path.slice(12);
const lastIndex = path.lastIndexOf("/"); const lastIndex = path.lastIndexOf("/");
if (lastIndex === -1) { if (lastIndex === -1) {
path = "/"; path = "/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment