优化:移动端文本预览
This commit is contained in:
parent
e637ee2366
commit
46d20e2d8f
@ -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",
|
||||
|
||||
@ -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))
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user