修复:修复首次创建文本文件后显示失败的问题

This commit is contained in:
jmal 2020-09-20 23:41:31 +08:00
parent 11d927e400
commit 56e7170f74
2 changed files with 7 additions and 2 deletions

View File

@ -1510,11 +1510,17 @@
return
}
this.createTextFileLoading = true
let parentPath = "/"
if(this.path){
if(this.path.length > 0){
parentPath = this.path
}
}
api.addFile({
fileName: newFileName,
isFolder: false,
username: this.$store.state.user.name,
parentPath: this.path
parentPath: parentPath
}).then((res)=>{
this.createTextFileLoading = false

View File

@ -555,7 +555,6 @@
this.editorWidth += this.contentsWidth
this.contentsHide = true
}
console.log('readOnly',this.options.readOnly)
},
loadEditorSize(){
this.dialogWidth = document.body.clientWidth * this.dialogWidthPercent