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

update draft

This commit is contained in:
ilearnit
2019-03-07 08:41:56 +00:00
parent 2f7f2c0f19
commit 55dd843bd0
4 changed files with 8 additions and 4 deletions

View File

@@ -378,8 +378,8 @@ class Draft extends React.Component {
}
onPublishDraft = () => {
const OriginFileLink = siteRoot + 'lib/' + draftRepoID + '/file' + draftOriginFilePath + '/';
seafileAPI.publishDraft(draftID).then(res => {
const OriginFileLink = siteRoot + 'lib/' + draftRepoID + '/file' + encodeURIComponent(res.data.published_file_path) + '/';
window.location.href = OriginFileLink;
});
}