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
d046de74
Commit
d046de74
authored
Jun 16, 2022
by
吴永生#A02208
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 上传文件添加参数
parent
2100b80e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
MyPopover.tsx
src/components/mui/MyPopover.tsx
+1
-1
tusUpload.ts
src/utils/Upload/tusUpload.ts
+1
-0
index.tsx
src/views/Project/ProjectData/UpLoaderFile/index.tsx
+2
-1
No files found.
src/components/mui/MyPopover.tsx
View file @
d046de74
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-11 09:33:46
* @Date: 2022-06-11 09:33:46
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-06-1
1 11:33:17
* @LastEditTime: 2022-06-1
6 11:50:31
* @FilePath: /bkunyun/src/components/mui/MyPopover.tsx
* @FilePath: /bkunyun/src/components/mui/MyPopover.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
...
src/utils/Upload/tusUpload.ts
View file @
d046de74
...
@@ -50,6 +50,7 @@ const UseTusUpload = (uploadInfoStore: any) => {
...
@@ -50,6 +50,7 @@ const UseTusUpload = (uploadInfoStore: any) => {
token
:
tokenInfo
?.
access_token
||
""
,
token
:
tokenInfo
?.
access_token
||
""
,
filetoken
:
fileToken
,
filetoken
:
fileToken
,
share
:
false
,
share
:
false
,
project
:
true
,
};
};
let
upload
=
new
tus
.
Upload
(
file
,
{
let
upload
=
new
tus
.
Upload
(
file
,
{
endpoint
:
url
,
endpoint
:
url
,
...
...
src/views/Project/ProjectData/UpLoaderFile/index.tsx
View file @
d046de74
...
@@ -109,13 +109,14 @@ const UpLoaderFile = observer((props: any) => {
...
@@ -109,13 +109,14 @@ const UpLoaderFile = observer((props: any) => {
item
?.
file
,
item
?.
file
,
url
,
url
,
currentProjectStore
?.
currentProjectInfo
?.
filetoken
||
""
,
currentProjectStore
?.
currentProjectInfo
?.
filetoken
||
""
,
path
`
${
path
}
/
${
item
?.
file
?.
name
}
`
);
);
});
});
},
},
[
[
currentProjectStore?.currentProjectInfo?.filetoken,
currentProjectStore?.currentProjectInfo?.filetoken,
currentProjectStore?.currentProjectInfo?.id,
currentProjectStore?.currentProjectInfo?.id,
path,
uploadFile,
uploadFile,
]
]
);
);
...
...
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