Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sunyihao
bkunyun
Commits
e290d95b
Commit
e290d95b
authored
Jul 08, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决文件路径修改后导致任务详情结果文件获取失败的问题
parent
05e19297
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.tsx
src/views/Project/ProjectJobDetail/index.tsx
+2
-2
No files found.
src/views/Project/ProjectJobDetail/index.tsx
View file @
e290d95b
...
@@ -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
(
1
3
);
let
path
=
item
.
path
.
slice
(
1
2
);
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
(
1
3
);
let
path
=
item
.
path
.
slice
(
1
2
);
const
lastIndex
=
path
.
lastIndexOf
(
"/"
);
const
lastIndex
=
path
.
lastIndexOf
(
"/"
);
if
(
lastIndex
===
-
1
)
{
if
(
lastIndex
===
-
1
)
{
path
=
"/"
;
path
=
"/"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment