修复:修复首次创建文本文件后显示失败的问题
This commit is contained in:
parent
11d927e400
commit
56e7170f74
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user