实训平台代码调整

This commit is contained in:
joylink_cuiweidong 2020-11-25 18:28:20 +08:00
parent 10c007e9cf
commit a5dad072ca
3 changed files with 7 additions and 1 deletions

View File

@ -952,6 +952,7 @@ const map = {
},
updateMapDevices: ({ commit, state }, models) => {
return new Promise((resolve) => {
// debugger;
if (!(models instanceof Array)) {
models = [models];
}
@ -969,7 +970,7 @@ const map = {
});
const list = Object.values(dict);
handleOperation(state, list);
if (window.location.href.includes('/design/usermap/map/draw')) { handleOperation(state, list); }
commit('mapRender', list);
resolve(list);
});

View File

@ -163,6 +163,7 @@ export default {
beforeDestroy() {
this.destroy();
this.clearSubscribe();
this.$store.dispatch('runPlan/setPlanData', []);
},
methods: {
async subscribe() {

View File

@ -53,6 +53,10 @@ export default {
});
}
},
beforeDestroy() {
this.$store.dispatch('runPlan/setPlanData', []);
this.$store.dispatch('runPlan/setInitialPlanData', []);
},
mounted() {
// this.menus = this.$theme.loadPlanComponent(this.$route.query.lineCode);
},