mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 13:50:07 +00:00
update-page-jump (#2495)
This commit is contained in:
@@ -216,6 +216,12 @@ class EditorUtilities {
|
|||||||
goDraftPage() {
|
goDraftPage() {
|
||||||
window.location.href = serviceUrl + '/lib/' + repoID + '/file' + draftFilePath + '?mode=edit'
|
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'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user