Commit b053f4c5 authored by wuyongsheng's avatar wuyongsheng

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

fix: 上传文件添加参数

See merge request !42
parents 30c4783d 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-11 11:33:17 * @LastEditTime: 2022-06-16 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
*/ */
......
...@@ -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,
......
...@@ -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,
] ]
); );
......
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