Blame view

index.html 1.39 KB
0c49c87e   liuqimichale   微信公众号 初始化
1
2
3
4
5
6
  <!DOCTYPE html>
  <html>
    <head>
      <meta charset="utf-8">
      <meta name="google" content="notranslate">
      <meta name="viewport" content="width=device-width,initial-scale=1.0">
83e732f8   刘淇   赤峰正式环境 默认蒙D车牌
7
8
9
10
  
      <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
      <meta http-equiv="Pragma" content="no-cache" />
      <meta http-equiv="Expires" content="0" />
943f9186   刘淇   支持支付宝
11
      <title>停车支付</title>
34c54a40   刘淇   去缓存
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
      <script>
      window.addEventListener(
        "error",
        function(e) {
          var jsLoadedErrorReload = window.sessionStorage.getItem(
            "jsLoadedErrorReload"   // 跳转的标识,存入sessionStorage。用于不可控情况下,防止一直满足条件,触发死循环性的跳转页面
          );
          const fileReg = /\/js\/((chunk-vendors)|(app))\.[a-zA-Z0-9]+/;
          const filename = e.filename || e.target.src || "";
          if (jsLoadedErrorReload !== "true" && filename.match(fileReg)) {
            window.sessionStorage.setItem("jsLoadedErrorReload", true);  // 满足条件则,存入标识
            let url = window.location.href;
            const timeStr = `timeStr=${Date.now()}`;
            url = /\?/.test(url) ? url + "&" + timeStr : url + "?" + timeStr;
            window.location.replace(url); // 跳转时添加了时间戳
          }
        },
        true
      );
      </script>
0c49c87e   liuqimichale   微信公众号 初始化
32
33
34
35
    </head>
    <body>
      <div id="app"></div>
      <!-- built files will be auto injected -->
34c54a40   刘淇   去缓存
36
  
0c49c87e   liuqimichale   微信公众号 初始化
37
38
    </body>
  </html>