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
3cb7850c
Commit
3cb7850c
authored
Jun 16, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: bug修改提交
parent
d3ab1d6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
index.tsx
src/views/Project/ProjectData/UpLoaderFile/index.tsx
+6
-1
index.tsx
src/views/Project/ProjectData/index.tsx
+4
-5
No files found.
src/views/Project/ProjectData/UpLoaderFile/index.tsx
View file @
3cb7850c
...
...
@@ -67,7 +67,6 @@ const UpLoaderFile = observer((props: any) => {
};
const
repeatAndUploaderFileList
=
getRepeatFileAndGetUploderFileList
(
acceptedFiles
);
console
.
log
(
repeatAndUploaderFileList
);
if
(
repeatAndUploaderFileList
.
repeatFileList
.
length
>
0
)
{
message
.
error
(
`“
${
repeatAndUploaderFileList
.
repeatFileList
...
...
@@ -78,6 +77,12 @@ const UpLoaderFile = observer((props: any) => {
// 插入新的文件列表
const
popLength
=
10
-
fileList
.
length
;
if
(
fileList
.
length
+
repeatAndUploaderFileList
.
uploderFileList
.
length
>
10
)
{
message
.
error
(
"最大支持同时上传10个文件"
);
}
let
newFileList
=
[
...
repeatAndUploaderFileList
.
uploderFileList
.
slice
(
0
,
popLength
),
...
fileList
,
...
...
src/views/Project/ProjectData/index.tsx
View file @
3cb7850c
...
...
@@ -56,9 +56,8 @@ const ProjectData = observer(() => {
const
{
currentProjectStore
}
=
useStores
();
const
fileToken
=
toJS
(
currentProjectStore
.
currentProjectInfo
.
filetoken
);
const
projectId
=
toJS
(
currentProjectStore
.
currentProjectInfo
.
id
);
if
(
!
projectId
||
!
fileToken
)
{
return
<
NoProject
/>;
}
console
.
log
(
fileToken
);
console
.
log
(
projectId
);
/** 路由信息 */
const
location
=
useLocation
();
// 当前文件路径
...
...
@@ -144,9 +143,9 @@ const ProjectData = observer(() => {
// 获取某路径下的数据集
const
getDataSetList
=
useCallback
(()
=>
{
if
(
keyWord
&&
projectId
)
{
if
(
keyWord
)
{
return
;
}
else
{
}
else
if
(
projectId
)
{
return
getDataFindRun
({
projectId
:
projectId
as
string
,
path
:
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