diff --git a/src/components/CommandRunResult.vue b/src/components/CommandRunResult.vue index 1a5f0c0..58bc942 100644 --- a/src/components/CommandRunResult.vue +++ b/src/components/CommandRunResult.vue @@ -113,8 +113,8 @@ export default { currentCommand.program === "custom" ? currentCommand.customOptions : this.$root.programs[currentCommand.program]; - option.scptarg = currentCommand.scptarg; - option.charset = currentCommand.charset; + option.scptarg = currentCommand.scptarg || ""; + option.charset = currentCommand.charset || {}; window.runCodeFile( currentCommand.cmd, option,