lsc 1 年間 前
コミット
9c0b2f313c

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.html


ファイルの差分が大きいため隠しています
+ 1 - 1
dist/report.html


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.46866c51.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.a9739715.js


+ 7 - 0
public/index.html

@@ -32,4 +32,11 @@
 </html>
 <script>
     // document.domain = "cocorobo.cn"
+    document.addEventListener(
+      'touchmove',
+      function(event) {
+        event.preventDefault()
+      },
+      false
+    )
 </script>

+ 4 - 8
src/App.vue

@@ -1,5 +1,5 @@
 <template>
-  <div id="app">
+  <div id="app" @touchmove="handleTouchMove">
     <keep-alive v-if="$route.meta.keepAlive">
       <router-view v-wechat-title="$route.meta.title" />
     </keep-alive>
@@ -19,16 +19,12 @@ export default {
     }
   },
   created() {
-    document.addEventListener(
-      'touchmove',
-      function(event) {
-        event.preventDefault()
-      },
-      false
-    )
     console.log(this.$wx)
   },
   methods: {
+    handleTouchMove(event) {
+      event.preventDefault()
+    },
     hasClass(obj, cls) {
       return obj.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'))
     },

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません