Blame view

public/index.html 1.13 KB
a0ea7efe   梁保满   init
1
2
3
4
5
6
7
  <!DOCTYPE html>
  <html lang="">
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
818e50d7   梁保满   标签删除,修改
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" />
a0ea7efe   梁保满   init
11
12
13
14
15
16
    <title>
      <%= htmlWebpackPlugin.options.title %>
    </title>
  </head>
  
  <body>
a6eb85ed   梁保满   下载模版错误信息展示,图标根据环境切换
17
18
19
20
21
    <script>
      window.onload = function () {
        var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
        link.type = 'image/x-icon';
        link.rel = 'shortcut icon';
77da338a   梁保满   自测问题修改
22
23
        var isZS = window.location.host.includes('121.199.53.164')
        link.href = isZS ? "./331icon.ico" : "./favicon.ico";
a6eb85ed   梁保满   下载模版错误信息展示,图标根据环境切换
24
25
26
        document.getElementsByTagName('head')[0].appendChild(link);
      }
    </script>
a0ea7efe   梁保满   init
27
28
29
30
31
32
33
34
35
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
          Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  
  </html>