实训平台代码调整
This commit is contained in:
parent
10c007e9cf
commit
a5dad072ca
@ -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);
|
||||
});
|
||||
|
@ -163,6 +163,7 @@ export default {
|
||||
beforeDestroy() {
|
||||
this.destroy();
|
||||
this.clearSubscribe();
|
||||
this.$store.dispatch('runPlan/setPlanData', []);
|
||||
},
|
||||
methods: {
|
||||
async subscribe() {
|
||||
|
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user