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
Administrator
bkunyun
Commits
0b259dc1
Commit
0b259dc1
authored
Jul 18, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决首次切换产品后获取项目数据报错的问题
parent
a1155ca9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
index.tsx
src/views/Project/ProjectData/index.tsx
+5
-1
No files found.
src/views/Project/ProjectData/index.tsx
View file @
0b259dc1
...
@@ -77,6 +77,8 @@ const ProjectData = observer(() => {
...
@@ -77,6 +77,8 @@ const ProjectData = observer(() => {
let
tableRef
:
any
=
React
.
createRef
();
let
tableRef
:
any
=
React
.
createRef
();
// 是否显示复选框 用户搜索文件后不显示 其他情况显示
// 是否显示复选框 用户搜索文件后不显示 其他情况显示
const
[
showCheckBox
,
setShowCheckBox
]
=
useState
<
boolean
>
(
true
);
const
[
showCheckBox
,
setShowCheckBox
]
=
useState
<
boolean
>
(
true
);
// 文件服务器指向
const
fileServerEndPoint
=
localStorage
.
getItem
(
"fileServerEndPoint"
);
// 切换文件、数据集
// 切换文件、数据集
const
handleChangeListType
=
(
e
:
number
)
=>
{
const
handleChangeListType
=
(
e
:
number
)
=>
{
...
@@ -192,6 +194,7 @@ const ProjectData = observer(() => {
...
@@ -192,6 +194,7 @@ const ProjectData = observer(() => {
if
(
keyWord
)
{
if
(
keyWord
)
{
return
;
return
;
}
else
if
(
fileToken
&&
projectId
)
{
}
else
if
(
fileToken
&&
projectId
)
{
if
(
fileServerEndPoint
)
{
setTableLoadding
(
true
);
setTableLoadding
(
true
);
return
CloudEController
.
JobOutFileList
(
return
CloudEController
.
JobOutFileList
(
path
,
path
,
...
@@ -210,7 +213,8 @@ const ProjectData = observer(() => {
...
@@ -210,7 +213,8 @@ const ProjectData = observer(() => {
setShowCheckBox
(
true
);
setShowCheckBox
(
true
);
});
});
}
}
},
[
fileToken
,
path
,
projectId
,
keyWord
]);
}
},
[
fileToken
,
path
,
projectId
,
keyWord
,
fileServerEndPoint
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
getList
();
getList
();
...
...
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