Commit d5cacb19 authored by gongzijian's avatar gongzijian
Browse files

修改文件显示问题

parent 7e674218
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@
            this.isData = false
          } else {
            this.isData = true
            this._handlerEditor().setValue(res.data.content)
            this._handlerEditor().setValue(res.data.content + '\n')

            // Initialize the plugin to prevent repeated calls
            if (editor.lineCount() < 1000) {
+2 −1
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@
            this.isData = false
          } else {
            this.isData = true
            this._handlerEditor().setValue(res.data.content || '')
            let content = res.data.content ? res.data.content + '\n' : ''
            this._handlerEditor().setValue(content)
            setTimeout(() => {
              $('.code-mirror-model').scrollTop(12).scrollLeft(0)
            }, 200)