src/directive/drag.js
@@ -11,7 +11,6 @@ } const mousemoveFun = evt => { console.log(66666) //获取body宽高,获取拖动盒子的宽高 const { offsetWidth: bodyWidth, offsetHeight: bodyHeight } = document.body const { offsetWidth: boxWidth, offsetHeight: boxHeight } = dragBox