1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00
This commit is contained in:
Ranjiwei
2024-11-15 20:38:27 +08:00
committed by GitHub
parent edaf88f6cc
commit d4fc55b76d
3 changed files with 9 additions and 10 deletions

View File

@@ -211,13 +211,9 @@ class MarkdownEditor extends React.Component {
const fileInfoRes = await seafileAPI.getFileInfo(repoID, filePath);
const { mtime, size, starred, permission, last_modifier_name, id } = fileInfoRes.data;
const lastModifier = last_modifier_name;
// get file download url
const fileDownloadUrlRes = await seafileAPI.getFileDownloadLink(repoID, filePath);
const downloadUrl = fileDownloadUrlRes.data;
const { rawPath } = window.app.pageOptions;
// get file content
const fileContentRes = await seafileAPI.getFileContent(downloadUrl);
const fileContentRes = await seafileAPI.getFileContent(rawPath);
const markdownContent = fileContentRes.data;
// init permission