lock.qiu@kerryprops.com 2 жил өмнө
parent
commit
ad5f5545ae
1 өөрчлөгдсөн 15 нэмэгдсэн , 15 устгасан
  1. 15 15
      public/index.html

+ 15 - 15
public/index.html

@@ -33,21 +33,21 @@
   <script>
     // const debug = window.localStorage.getItem('H5_DEBUG');
     // 开发环境和qa环境 打开debug
-    // const debug = /dev-|qa-/.test(window?.injectConfig?.api) || window.location.href.indexOf(8080) > -1;
-    // if (debug) {
-    //   const script = document.createElement('script');
-    //   script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js';
-    //   document.head.appendChild(script);
-    //   script.addEventListener('load', () => {
-    //     setTimeout(() => {
-    //       window.vConsole = new window.VConsole();
-    //     }, 200);
-    //   });
-    // }
-    // if ( /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) ) {
-    //   // https://developers.weixin.qq.com/community/develop/doc/000ae2cb950808f90d8bc415551800
-    //   window.H5_LAUNCH_URL = location.href;
-    // }
+    const debug = /dev-|qa-/.test(window?.injectConfig?.api) || window.location.href.indexOf(8080) > -1;
+    if (debug) {
+      const script = document.createElement('script');
+      script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js';
+      document.head.appendChild(script);
+      script.addEventListener('load', () => {
+        setTimeout(() => {
+          window.vConsole = new window.VConsole();
+        }, 200);
+      });
+    }
+    if ( /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) ) {
+      // https://developers.weixin.qq.com/community/develop/doc/000ae2cb950808f90d8bc415551800
+      window.H5_LAUNCH_URL = location.href;
+    }
   </script>
   <script>
       // var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))