mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
update draft
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user