优化:移动端文本预览

This commit is contained in:
jmal 2021-03-24 21:43:36 +08:00
parent e637ee2366
commit 46d20e2d8f
3 changed files with 9 additions and 7 deletions

View File

@ -29,9 +29,10 @@
"jshint": "^2.11.1",
"less-loader": "^6.1.0",
"lib-flexible": "^0.3.2",
"monaco-editor": "^0.23.0",
"monaco-editor-vue": "^1.0.10",
"monaco-editor-webpack-plugin": "^1.9.0",
"monaco-languages": "^1.10.0",
"monaco-editor-webpack-plugin": "^3.0.1",
"monaco-languages": "^2.3.0",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",

View File

@ -325,10 +325,12 @@
return doc
})
if(reLoad){
this.tree.reload(this.convert(data))
if(activeNodeData){
this.$emit('treeNodeClick', activeNodeData)
}
this.$nextTick(() => {
this.tree.reload(this.convert(data))
if(activeNodeData){
this.$emit('treeNodeClick', activeNodeData)
}
})
}else{
this.initTree(this.convert(data))
}

View File

@ -554,7 +554,6 @@
if(this.$store.state.user.token && this.$store.state.user.userId === fileUserId){
this.options.readOnly = false
}
console.log(this.options.readOnly, this.moblie)
if(this.options.readOnly || this.moblie){
this.$nextTick(()=> {
this.editorWidth += this.contentsWidth