diff --git a/_server/vm.js b/_server/vm.js index d78bf092..942e5157 100644 --- a/_server/vm.js +++ b/_server/vm.js @@ -1,12 +1,5 @@ // vue 相关处理 -document.body.onmousedown = function(e){ - selectBox.isSelected = false; - editor.info = {}; -} -iconLib.onmousedown = function(e){ - e.stopPropagation(); -} var exportM = new Vue({ el: '#exportM', diff --git a/drawMapGUI.html b/drawMapGUI.html index 952477e8..b34e30fb 100644 --- a/drawMapGUI.html +++ b/drawMapGUI.html @@ -634,7 +634,13 @@ editor.prototype.listen = function() { } } } - + document.body.onmousedown = function(e){ + selectBox.isSelected = false; + editor.info = {}; + } + iconLib.onmousedown = function(e){ + e.stopPropagation(); + } }//绑定事件 editor.prototype.locInfo = function(){ @@ -655,32 +661,32 @@ editor.file=editor_file;