1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

repair shared upload link bug

This commit is contained in:
shanshuirenjia
2021-04-22 15:28:42 +08:00
parent 914fb751ea
commit 8a86630b76

View File

@@ -310,8 +310,8 @@ class SharedDirView extends React.Component {
ref={uploader => this.uploader = uploader}
dragAndDrop={false}
token={token}
path={dirPath.replace(/\/+$/, "")}
relativePath={relativePath.replace(/\/+$/, "")}
path={dirPath === '/' ? dirPath : dirPath.replace(/\/+$/, "")}
relativePath={relativePath === '/' ? relativePath : relativePath.replace(/\/+$/, "")}
repoID={repoID}
onFileUploadSuccess={this.onFileUploadSuccess}
/>