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

update-page-jump (#2495)

This commit is contained in:
C_Q
2018-11-02 11:03:10 +08:00
committed by Daniel Pan
parent c93e8aa603
commit 973ca9cf35

View File

@@ -216,6 +216,12 @@ class EditorUtilities {
goDraftPage() {
window.location.href = serviceUrl + '/lib/' + repoID + '/file' + draftFilePath + '?mode=edit'
}
createDraftFile() {
return seafileAPI.createDraft(repoID, filePath).then(res => {
window.location.href = serviceUrl + '/lib/' + res.data.origin_repo_id + '/file' + res.data.draft_file_path + '?mode=edit'
})
}
}