加载实训时清除实训分数

This commit is contained in:
fan 2022-09-19 17:55:19 +08:00
parent fc9f284ee1
commit 41d8635b73
2 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ export default {
}
}
this.$store.dispatch('trainingNew/setTrainingDetail', detailResp.data);
this.$store.dispatch('trainingNew/setTrainingScore', '');
await loadPublishTraining(this.group, data.id, {mode: this.teachMode});
this.$message.success('加载实训成功!');
} catch (e) {

View File

@ -293,6 +293,7 @@ export default {
}
this.$emit('closeAllDialog');
this.$store.dispatch('trainingNew/setTrainingDetail', detailResp.data);
this.$store.dispatch('trainingNew/setTrainingScore', '');
await loadDraftTraining(this.group, data.id, {mode: this.teachMode});
this.$message.success('加载实训成功!');
} catch (e) {