实训调整
This commit is contained in:
parent
a2c704ffea
commit
305b9e7eb5
@ -102,6 +102,7 @@ export default {
|
||||
},
|
||||
handlerStart() {
|
||||
startTraining(this.group, {mode: this.teachMode}).then(() => {
|
||||
this.$store.dispatch('trainingNew/changeTeachMode', this.teachMode);
|
||||
this.$store.dispatch('trainingNew/trainingStart');
|
||||
}).catch(() => {
|
||||
this.$message.error('开始实训失败!');
|
||||
@ -120,6 +121,7 @@ export default {
|
||||
this.$store.dispatch('trainingNew/trainingEnd');
|
||||
this.$store.dispatch('socket/clearTrainingStepTip');
|
||||
this.$store.dispatch('trainingNew/clearStepOrder');
|
||||
this.$store.dispatch('trainingNew/changeTeachMode', '');
|
||||
this.$store.dispatch('trainingNew/setTrainingDetail', null);
|
||||
}).catch(() => {
|
||||
this.$message.error('结束实训失败!');
|
||||
|
Loading…
Reference in New Issue
Block a user