Commit 47625826 by 张杰

修复页面全局注册的按钮监听时间,影响其他页面

1 parent 1fdadbf4
...@@ -1227,6 +1227,7 @@ export default { ...@@ -1227,6 +1227,7 @@ export default {
this.getTreeData(); this.getTreeData();
}, },
beforeDestroy() { beforeDestroy() {
document.onkeydown = null;
EventBus.$emit("uiMap.monitor.destroy"); EventBus.$emit("uiMap.monitor.destroy");
EventBus.$off("uiMap.monitor.drawDone", this.drawDoneCb); EventBus.$off("uiMap.monitor.drawDone", this.drawDoneCb);
this._drawTimeoutId && window.clearTimeout(this._drawTimeoutId); this._drawTimeoutId && window.clearTimeout(this._drawTimeoutId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!