lsc 1 year ago
parent
commit
2f610e14cb
1 changed files with 24 additions and 24 deletions
  1. 24 24
      public/index.html

+ 24 - 24
public/index.html

@@ -2,42 +2,42 @@
 <html>
 
 <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
-    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <!-- <% for (var i in
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+  <!-- <% for (var i in
       htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.css) { %>
       <link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style" />
       <link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet" />
 	  <% } %> -->
-    <title>
-        <%= webpackConfig.name %>
-    </title>
+  <title>
+    <%= webpackConfig.name %>
+  </title>
 </head>
 
 <body>
-    <noscript>
-      <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
-    </noscript>
-    <div id="app"></div>
-    <!-- 使用CDN加速的JS文件,配置在vue.config.js下 -->
-    <!-- <% for (var i in
+  <noscript>
+    <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it
+        to continue.</strong>
+  </noscript>
+  <div id="app"></div>
+  <!-- 使用CDN加速的JS文件,配置在vue.config.js下 -->
+  <!-- <% for (var i in
       htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
       <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
     <% } %> -->
-    <!-- built files will be auto injected -->
+  <!-- built files will be auto injected -->
 </body>
 
 </html>
 <script>
-    // document.domain = "cocorobo.cn"
-    document.addEventListener(
-      'touchmove',
-      function(event) {
-        event.preventDefault()
-      },
-      false
-    )
-    
+  // document.domain = "cocorobo.cn"
+  document.querySelector('body').addEventListener(
+    'touchmove',
+    function (event) {
+      event.preventDefault()
+    })
+
+
 </script>