1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

update seafile-js api (#4405)

This commit is contained in:
杨顺强
2020-01-11 13:29:04 +08:00
committed by Daniel Pan
parent 450b23d0d9
commit c3dff6225f
7 changed files with 13 additions and 13 deletions

View File

@@ -38,7 +38,7 @@ class GenerateUploadLink extends React.Component {
getUploadLink = () => {
let path = this.props.itemPath;
let repoID = this.props.repoID;
seafileAPI.getUploadLinks(repoID, path).then((res) => {
seafileAPI.getUploadLink(repoID, path).then((res) => {
if (res.data.length !== 0) {
let sharedUploadInfo = new UploadLink(res.data[0]);
this.setState({sharedUploadInfo: sharedUploadInfo});