编辑命令界面也需要临时赋值

This commit is contained in:
fofolee
2022-04-12 13:06:51 +08:00
parent 0666644d02
commit 3ba0d01915
3 changed files with 13 additions and 13 deletions

View File

@@ -353,10 +353,10 @@ export default {
},
// 运行
runCurrentCommand() {
// 如果 action 是 run 则输出一律为 text
this.quickcommandInfo.output =
this.$refs.menu?.currentCommand.output || "text";
this.$refs.result.runCurrentCommand(_.cloneDeep(this.quickcommandInfo));
let command = _.cloneDeep(this.quickcommandInfo);
command.output = this.$refs.menu?.currentCommand.output || "text";
command.cmdType = this.$refs.menu?.cmdType.name;
this.$refs.result.runCurrentCommand(command);
},
},
};