fix(项目设置): 代码模版生成的代码添加至脚本编辑器光标位置
--bug=1002574 --user=李玉号 【github】缺陷记录2021-04-12 https://www.tapd.cn/55049933/s/1174908
This commit is contained in:
parent
e17b6a34b7
commit
e0e89283e3
|
@ -269,12 +269,9 @@ export default {
|
|||
}
|
||||
},
|
||||
handleCodeTemplate(code) {
|
||||
if (!this.jsr223Processor.script) {
|
||||
this.jsr223Processor.script = code;
|
||||
} else {
|
||||
this.jsr223Processor.script = this.jsr223Processor.script + '\n' + code;
|
||||
if (this.$refs.codeEdit) {
|
||||
this.$refs.codeEdit.insert(code);
|
||||
}
|
||||
this.reload();
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue