Jelajahi Sumber

fix-7183(KIP-7183): H5端停车优惠券跳转失败:引入jsdk失败2

John-Hong 2 tahun lalu
induk
melakukan
1efef52499
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      public/index.html

+ 2 - 2
public/index.html

@@ -10,7 +10,7 @@
             <%= htmlWebpackPlugin.options.title %>
         </title> -->
   <title>
-    <%= webpackConfig.name %>
+    临时停车
   </title>
   <script>
     // CONFIGURATIONS_PLACEHOLDER
@@ -27,7 +27,7 @@
     }
     const userAgent = window.navigator.userAgent.toLowerCase()
     if(!/miniprogram/g.test(userAgent)) {
-      window.document.title = '临时停车'
+      document.getElementsByTagName('title')[0].innerText= '临时停车'
     }
   </script>
   <script>