fix(项目设置): 代码模版生成的代码添加至脚本编辑器光标位置

--bug=1002574 --user=李玉号 【github】缺陷记录2021-04-12
https://www.tapd.cn/55049933/s/1174908
This commit is contained in:
shiziyuan9527 2022-06-07 14:27:45 +08:00 committed by f2c-ci-robot[bot]
parent e17b6a34b7
commit e0e89283e3
1 changed files with 2 additions and 5 deletions

View File

@ -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();
},
}
}