默认命令调整

This commit is contained in:
fofolee 2022-05-16 17:17:24 +08:00
parent 6f4bf8fe96
commit ef82e14d37

View File

@ -19,16 +19,15 @@ export default {
}; };
}, },
mounted() { mounted() {
this.runCurrentCommand(); let command =
}, this.featureCode.slice(0, 8) === "default_"
computed: { ? require(`../json/${this.featureCode}.json`)
currentCommand() { : this.$root.utools.whole.db.get("qc_" + this.featureCode).data;
return this.$root.utools.whole.db.get("qc_" + this.featureCode).data; this.runCurrentCommand(command);
},
}, },
methods: { methods: {
runCurrentCommand() { runCurrentCommand(command) {
this.$refs.result.runCurrentCommand(_.cloneDeep(this.currentCommand)); this.$refs.result.runCurrentCommand(_.cloneDeep(command));
}, },
}, },
}; };