修改:删除全局loading

This commit is contained in:
fan 2019-08-19 13:27:15 +08:00
parent 3fe9ffd451
commit a669d093b1
3 changed files with 0 additions and 9 deletions

View File

@ -291,7 +291,6 @@ export default {
this.$router.push({ path: `${UrlConfig.display}/demon`, query: query });
launchFullscreen();
}).catch(error => {
this.loading.close();
this.$messageBox(`创建仿真失败: ${error.message}`);
});
},

View File

@ -180,7 +180,6 @@ export default {
await this.$store.dispatch('exam/setTotalTime', this.userExam.duration);
await this.$store.dispatch('trainingList/setTrainingList', list);
} catch (error) {
this.loading.close();
//
if (error.code === 500004) {
this.$confirm('无此课程的考试权限,请前往购买!', '提示', {

View File

@ -258,12 +258,6 @@ export default {
this.$refs.draftTrain.show({ event: '03', title: '删除自动生成实训' });
},
demoDisplay(index, node) {
this.loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
trainingNotify({ trainingId: node.id }).then(resp => {
/** 区分演示和正式需要在演示时设置lessonId为0*/
const query = { group: resp.data, trainingId: node.id, lessonId: 0 };
@ -271,7 +265,6 @@ export default {
launchFullscreen();
}).catch(error => {
this.$messageBox(`创建仿真失败: ${error.message}`);
this.loading.close();
});
},