浏览代码

fix:向下拖动问题

sunchengjie 9 月之前
父节点
当前提交
80cf2ad84a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/pages/new/sureCombine.vue

+ 3 - 0
src/pages/new/sureCombine.vue

@@ -97,6 +97,9 @@ export default {
         };
     },
     mounted() {
+        document.addEventListener('touchmove', function(e) {
+            e.preventDefault();
+        }, { passive: false })
         this.initCanvas();
         // 在组件挂载后,设置默认选中的值  
         this.checkboxGroup = this.goodsList.map(item => item.id);