diff --git a/src/components/CommandCard.vue b/src/components/CommandCard.vue index 748a44b..1ef5116 100644 --- a/src/components/CommandCard.vue +++ b/src/components/CommandCard.vue @@ -276,7 +276,17 @@ export default { }, // 编辑命令 editCommand() { - console.log(this.commandInfo); + let routeData = { + from: "configuration", + action: "edit", + data: this.commandInfo, + }; + this.$router.push({ + name: "code", + params: { + data: JSON.stringify(routeData), + }, + }); }, // 运行命令 runCommand() { diff --git a/src/pages/CodeRunner.vue b/src/pages/CodeRunner.vue index ecb1857..da493e5 100644 --- a/src/pages/CodeRunner.vue +++ b/src/pages/CodeRunner.vue @@ -10,13 +10,13 @@ transition-show="jump-down" transition-hide="jump-up" label-color="teal" - v-model="program" + v-model="quickcommandInfo.program" :options="options" label="编程语言" >