diff --git a/src/store/modules/map.js b/src/store/modules/map.js index ec4f61185..ac0d7a954 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -255,7 +255,8 @@ const map = { mapDataLoadedCount: 0, // 地图数据加载完成标识 trainDetails: null, // 地图'列车详情'显示 deleteCount: 0, // 绘图快捷删除标识 - updateCount: 0 // 绘图快捷修改标识 + updateCount: 0, // 绘图快捷修改标识 + mousemove: 0 // 实训战场图移动标识 }, getters: { @@ -600,7 +601,10 @@ const map = { }, setUpdateCount: (state) => { state.updateCount++; - } + }, + setMousemove: (state) => { + state.mousemove++; + }, }, actions: { @@ -718,7 +722,11 @@ const map = { setUpdateCount: ({ commit }) => { commit('setUpdateCount'); - } + }, + + setMousemove: ({ commit }) => { + commit('setMousemove'); + }, } }; diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index deb3d5926..808611ecf 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -1,5 +1,5 @@