南京二号线现地实操加载时清除登录状态

This commit is contained in:
fan 2022-12-26 10:34:12 +08:00
parent 63a09a7abc
commit cb5799d14c
3 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,7 @@
<menu-station ref="menuStation" :selected="selected" :work="'localWork'" />
<passive-alarm ref="passiveAlarm" />
<passive-contorl ref="passiveControl" pop-class="fuzhou-01__systerm" />
<passive-Timeout ref="passiveTimeout" />
<passive-timeout ref="passiveTimeout" />
</div>
</template>

View File

@ -205,6 +205,11 @@ export default {
this.checkRoleChange(list);
}
},
'$store.state.trainingNew.trainingDetail': function(val) {
if (val && val.type) {
this.login();
}
},
'$store.state.socket.simulationAlarmInfo': function(val) {
(val || []).forEach(item => {
if (!item.confirmed) {

View File

@ -196,7 +196,6 @@ export default {
await loadPublishTraining(this.group, training.id, {mode: ''});
this.$message.success('加载实训成功!');
} catch (e) {
console.error(e, '-----------');
this.$message.error('加载实训失败!');
}
}