添加相关参数不存在时的处理

This commit is contained in:
fofolee 2022-04-19 22:25:44 +08:00
parent 015513ec45
commit 4b5309a21c

View File

@ -113,8 +113,8 @@ export default {
currentCommand.program === "custom" currentCommand.program === "custom"
? currentCommand.customOptions ? currentCommand.customOptions
: this.$root.programs[currentCommand.program]; : this.$root.programs[currentCommand.program];
option.scptarg = currentCommand.scptarg; option.scptarg = currentCommand.scptarg || "";
option.charset = currentCommand.charset; option.charset = currentCommand.charset || {};
window.runCodeFile( window.runCodeFile(
currentCommand.cmd, currentCommand.cmd,
option, option,