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