Browse Source

fix:向下拖动问题

sunchengjie 9 months ago
parent
commit
80cf2ad84a
1 changed files with 3 additions and 0 deletions
  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);