guhongwei 4 years ago
parent
commit
1ca5e26432
1 changed files with 11 additions and 11 deletions
  1. 11 11
      public/index.html

+ 11 - 11
public/index.html

@@ -5,8 +5,8 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <link rel="stylesheet" href="/static/home/css/swiper-bundle.min.css">
-    <script src="/static/js/swiper-bundle.min.js"></script>
+    <link rel="stylesheet" href="/public/static/home/css/swiper-bundle.min.css">
+    <script src="/public/static/js/swiper-bundle.min.js"></script>
     <title><%= htmlWebpackPlugin.options.title %></title>
   </head>
   <body>
@@ -17,15 +17,15 @@
     <!-- built files will be auto injected -->
       <script language=javascript>
           // 禁止右键菜单
-            // document.oncontextmenu = function () { return false; };
-            // // 禁止文字选择
-            // document.onselectstart = function () { return false; };
-            // // 禁止复制
-            // document.oncopy = function () { return false; };
-            // // 禁止剪切
-            // document.oncut = function () { return false; };
-            // // 禁止粘贴
-            // document.onpaste = function () { return false; };
+            document.oncontextmenu = function () { return false; };
+            // 禁止文字选择
+            document.onselectstart = function () { return false; };
+            // 禁止复制
+            document.oncopy = function () { return false; };
+            // 禁止剪切
+            document.oncut = function () { return false; };
+            // 禁止粘贴
+            document.onpaste = function () { return false; };
       </script>
   </body>
 </html>