1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-15 07:52:14 +00:00

feat: update api name

This commit is contained in:
er-pai-r 2023-12-04 14:16:55 +08:00
parent 0ad1655f7f
commit 9ca6b039a2

View File

@ -55,7 +55,7 @@ class SdocFileHistory extends React.Component {
}).then(res => {
const currentVersionContent = res.data;
if (isShowChanges) {
seafileAPI.getNextFileRevision(historyRepoID, currentVersion.id, currentVersion.path).then(res => {
seafileAPI.getLastFileRevision(historyRepoID, currentVersion.id, currentVersion.path).then(res => {
return res.data ? seafileAPI.getFileContent(res.data) : { data: '' };
}).then(res => {
const lastVersionContent = res.data;