the basic requirement point is to add a new piece of code to execute the command. Pass it backstage. Then I get the data to display a list, which has the function of modifying. When you take this piece of data and render it to the vue2-ace-editor component, the data cannot get in, and an error is reported.
this plug-in is quite unpopular. I searched a lot of information and didn"t find the reason, and I didn"t find out why I studied the source code. Write according to the document he gave, or report an error. After looking at the cause of the error, the assignment at the time of modification did not go into it. It is OK to assign values directly in created, but it would be wrong to request the data to assign values to him again, which has been entangled for two days.
packet address, two ways, the first part of the require is not very clear about the use of the second way.
https://www.npmjs.com/package.
https://www.npmjs.com/package.
vue part
<ace-editor :fontSize="12" :showPrintMargin="true" :showGutter="true" :highlightActiveLine="true" mode="batchfile" theme="monokai" :editorProps="{$blockScrolling: true}" height="160px" width="400px" :value="jenkinsForm.execCommand" style="border-radius: 4px 4px 4px 4px;" :onInput="changeData"></ace-editor>
introduction:
import { mapActions } from "vuex";
import brace from "brace";
import { Ace as AceEditor } from "vue2-brace-editor";
import "brace/mode/batchfile";
import "brace/theme/monokai";
effect:
: