mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +00:00
fix bug when save text file (#5766)
This commit is contained in:
@@ -7,6 +7,7 @@ import FileView from './components/file-view/file-view';
|
|||||||
import SeafileCodeMirror from './components/seafile-codemirror';
|
import SeafileCodeMirror from './components/seafile-codemirror';
|
||||||
import FileViewTip from './components/file-view/file-view-tip';
|
import FileViewTip from './components/file-view/file-view-tip';
|
||||||
import { seafileAPI } from './utils/seafile-api';
|
import { seafileAPI } from './utils/seafile-api';
|
||||||
|
import { Utils } from './utils/utils';
|
||||||
|
|
||||||
import './css/text-file-view.css';
|
import './css/text-file-view.css';
|
||||||
const {
|
const {
|
||||||
@@ -64,7 +65,7 @@ class ViewFileText extends React.Component {
|
|||||||
if (!this.isParticipant) {
|
if (!this.isParticipant) {
|
||||||
this.addParticipant();
|
this.addParticipant();
|
||||||
}
|
}
|
||||||
let dirPath = '/';
|
let dirPath = Utils.getDirName(filePath);
|
||||||
return (
|
return (
|
||||||
seafileAPI.getUpdateLink(repoID, dirPath).then((res) => {
|
seafileAPI.getUpdateLink(repoID, dirPath).then((res) => {
|
||||||
const uploadLink = res.data;
|
const uploadLink = res.data;
|
||||||
|
Reference in New Issue
Block a user