完善新建和编辑命令功能

This commit is contained in:
fofolee
2022-04-04 01:08:26 +08:00
parent fa7fcd216b
commit ee7d965826
3 changed files with 121 additions and 60 deletions

View File

@@ -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() {