Explorar o código

bugfix:处理验证码滑块问题

leo hai 1 ano
pai
achega
a7ee310858
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      components/verifition/Verify/VerifySlide.vue

+ 3 - 0
components/verifition/Verify/VerifySlide.vue

@@ -239,9 +239,11 @@ export default {
       });
 
       window.addEventListener('touchmove', function (e) {
+        e.stopPropagation();
         _this.move(e);
       });
       window.addEventListener('mousemove', function (e) {
+        e.stopPropagation();
         _this.move(e);
       });
 
@@ -256,6 +258,7 @@ export default {
 
     // 鼠标按下
     start: function (e) {
+      e.stopPropagation();
       e = e || window.event;
       let x = null;
       if (!e.touches) {