南京二号线现地实操加载时清除登录状态
This commit is contained in:
parent
63a09a7abc
commit
cb5799d14c
@ -10,7 +10,7 @@
|
|||||||
<menu-station ref="menuStation" :selected="selected" :work="'localWork'" />
|
<menu-station ref="menuStation" :selected="selected" :work="'localWork'" />
|
||||||
<passive-alarm ref="passiveAlarm" />
|
<passive-alarm ref="passiveAlarm" />
|
||||||
<passive-contorl ref="passiveControl" pop-class="fuzhou-01__systerm" />
|
<passive-contorl ref="passiveControl" pop-class="fuzhou-01__systerm" />
|
||||||
<passive-Timeout ref="passiveTimeout" />
|
<passive-timeout ref="passiveTimeout" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -205,6 +205,11 @@ export default {
|
|||||||
this.checkRoleChange(list);
|
this.checkRoleChange(list);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'$store.state.trainingNew.trainingDetail': function(val) {
|
||||||
|
if (val && val.type) {
|
||||||
|
this.login();
|
||||||
|
}
|
||||||
|
},
|
||||||
'$store.state.socket.simulationAlarmInfo': function(val) {
|
'$store.state.socket.simulationAlarmInfo': function(val) {
|
||||||
(val || []).forEach(item => {
|
(val || []).forEach(item => {
|
||||||
if (!item.confirmed) {
|
if (!item.confirmed) {
|
||||||
|
@ -196,7 +196,6 @@ export default {
|
|||||||
await loadPublishTraining(this.group, training.id, {mode: ''});
|
await loadPublishTraining(this.group, training.id, {mode: ''});
|
||||||
this.$message.success('加载实训成功!');
|
this.$message.success('加载实训成功!');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e, '-----------');
|
|
||||||
this.$message.error('加载实训失败!');
|
this.$message.error('加载实训失败!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user