绘图相关调整_(暂仅绘图注册键盘事件)

This commit is contained in:
fan 2019-12-06 10:11:29 +08:00
parent 4f824b83ac
commit ab661e0961

View File

@ -164,8 +164,9 @@ export default {
this.$jlmap.on('dataZoom', this.onDataZoom, this); this.$jlmap.on('dataZoom', this.onDataZoom, this);
this.$jlmap.on('selected', this.onSelected, this); this.$jlmap.on('selected', this.onSelected, this);
this.$jlmap.on('contextmenu', this.onContextMenu, 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 () { window.document.oncontextmenu = function () {
return false; return false;
}; };