修复:修复首次创建文本文件后显示失败的问题
This commit is contained in:
parent
11d927e400
commit
56e7170f74
@ -1510,11 +1510,17 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.createTextFileLoading = true
|
this.createTextFileLoading = true
|
||||||
|
let parentPath = "/"
|
||||||
|
if(this.path){
|
||||||
|
if(this.path.length > 0){
|
||||||
|
parentPath = this.path
|
||||||
|
}
|
||||||
|
}
|
||||||
api.addFile({
|
api.addFile({
|
||||||
fileName: newFileName,
|
fileName: newFileName,
|
||||||
isFolder: false,
|
isFolder: false,
|
||||||
username: this.$store.state.user.name,
|
username: this.$store.state.user.name,
|
||||||
parentPath: this.path
|
parentPath: parentPath
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
this.createTextFileLoading = false
|
this.createTextFileLoading = false
|
||||||
|
|
||||||
|
|||||||
@ -555,7 +555,6 @@
|
|||||||
this.editorWidth += this.contentsWidth
|
this.editorWidth += this.contentsWidth
|
||||||
this.contentsHide = true
|
this.contentsHide = true
|
||||||
}
|
}
|
||||||
console.log('readOnly',this.options.readOnly)
|
|
||||||
},
|
},
|
||||||
loadEditorSize(){
|
loadEditorSize(){
|
||||||
this.dialogWidth = document.body.clientWidth * this.dialogWidthPercent
|
this.dialogWidth = document.body.clientWidth * this.dialogWidthPercent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user