diff --git a/src/js/layer/index.js b/src/js/layer/index.js index 161da7f..8200f33 100644 --- a/src/js/layer/index.js +++ b/src/js/layer/index.js @@ -58,11 +58,16 @@ const close = function(id) { layerDom[id][1].classList.add('shift') layerDom[id][0].style.opacity = '' layerDom[id][1].style.opacity = 0 - setTimeout(_ => { - document.body.removeChild(layerDom[id][0]) - delete layerDom[id] - delete Anot.vmodels[id] - }, 200) + setTimeout( + (_ => { + return function() { + document.body.removeChild(layerDom[_][0]) + delete layerDom[_] + delete Anot.vmodels[_] + } + })(id), + 200 + ) } catch (err) {} } document.body.style.overflow = '' diff --git a/src/js/meditor/addon/attach.js b/src/js/meditor/addon/attach.js index 85a8d82..3452141 100644 --- a/src/js/meditor/addon/attach.js +++ b/src/js/meditor/addon/attach.js @@ -209,7 +209,7 @@ const fixCont = function(vm, tool) {