1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 09:51:26 +00:00

merge 10.0

This commit is contained in:
杨顺强
2023-11-24 14:44:18 +08:00
parent 0909025605
commit 087700d9fb
6 changed files with 31 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ import FileView from './components/file-view/file-view';
import SeafileCodeMirror from './components/seafile-codemirror';
import FileViewTip from './components/file-view/file-view-tip';
import { seafileAPI } from './utils/seafile-api';
import { Utils } from './utils/utils';
import './css/text-file-view.css';
const {
@@ -64,7 +65,7 @@ class ViewFileText extends React.Component {
if (!this.isParticipant) {
this.addParticipant();
}
let dirPath = '/';
let dirPath = Utils.getDirName(filePath);
return (
seafileAPI.getUpdateLink(repoID, dirPath).then((res) => {
const uploadLink = res.data;