实训调整

This commit is contained in:
fan 2022-10-08 16:33:14 +08:00
parent 97670ddb63
commit 2d772bed22

View File

@ -593,7 +593,9 @@ export default {
}
};
this.$store.dispatch('training/nextNew', operate).then(({ valid, response }) => {
this.clearOperate();
if (valid) {
this.clearOperate();
}
}).catch((error) => {
this.clearOperate();
console.error(error);
@ -653,10 +655,15 @@ export default {
},
//
sendCommand(operate) {
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch((error) => {
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {
if (valid) {
this.clearOperate();
}
}).catch((error) => {
this.clearOperate();
console.error(error);
this.$refs.noticeInfo.doShow();
}).finally(() =>{ this.clearOperate(); });
});
},
// ()
checkHasTrainButton(model) {