Преглед изворни кода

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

John-Hong пре 2 година
родитељ
комит
1efef52499
1 измењених фајлова са 2 додато и 2 уклоњено
  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>