Commit b053f4c5 authored by wuyongsheng's avatar wuyongsheng

Merge branch 'feat-20220608-projectdata' into 'release'

fix: 上传文件添加参数

See merge request sunyihao/bkunyun!42
parents 30c4783d d046de74
......@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-11 09:33:46
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-06-11 11:33:17
* @LastEditTime: 2022-06-16 11:50:31
* @FilePath: /bkunyun/src/components/mui/MyPopover.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......
......@@ -50,6 +50,7 @@ const UseTusUpload = (uploadInfoStore: any) => {
token: tokenInfo?.access_token || "",
filetoken: fileToken,
share: false,
project: true,
};
let upload = new tus.Upload(file, {
endpoint: url,
......
......@@ -109,13 +109,14 @@ const UpLoaderFile = observer((props: any) => {
item?.file,
url,
currentProjectStore?.currentProjectInfo?.filetoken || "",
path
`${path}/${item?.file?.name}`
);
});
},
[
currentProjectStore?.currentProjectInfo?.filetoken,
currentProjectStore?.currentProjectInfo?.id,
path,
uploadFile,
]
);
......
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