diff --git a/src/views/newMap/jlmapNew/index.vue b/src/views/newMap/jlmapNew/index.vue index 6c9073252..3d1b6cdd1 100644 --- a/src/views/newMap/jlmapNew/index.vue +++ b/src/views/newMap/jlmapNew/index.vue @@ -164,8 +164,9 @@ export default { this.$jlmap.on('dataZoom', this.onDataZoom, this); this.$jlmap.on('selected', this.onSelected, this); this.$jlmap.on('contextmenu', this.onContextMenu, this); - this.$jlmap.on('keyboard', this.onKeyboard, this); - + if (this.$route.path.startsWith('/design/usermap/map/draw')) { + this.$jlmap.on('keyboard', this.onKeyboard, this); + } window.document.oncontextmenu = function () { return false; };