完善执行命令功能 80%

This commit is contained in:
fofolee
2022-04-09 16:27:55 +08:00
parent b36248c9bc
commit 94b19dce5d
4 changed files with 102 additions and 56 deletions

View File

@@ -352,7 +352,9 @@ export default {
},
// 运行
runCurrentCommand() {
this.quickcommandInfo.output = this.$refs.menu?.currentCommand.output;
// 如果 action 是 run 则输出一律为 text
this.quickcommandInfo.output =
this.$refs.menu?.currentCommand.output || "text";
this.$refs.result.runCurrentCommand(this.quickcommandInfo);
},
},