12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
- <link rel="icon" id="favicon" href="<%= BASE_URL %>favicon.ico">
- <title>Loading...</title>
- <link rel="stylesheet" href="./fontIcon.css">
- <script type="text/javascript" src="./echarts.min.js"></script>
- <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
- </head>
- <body>
- <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>
- <script>
- const domainSettings = {
- 'szwlh.sunzee.com.cn': {
- favicon: 'favicon.ico',
- title: 'Sunzee'
- },
- 'szwltest.sunzee.com.cn': {
- favicon: 'favicon.ico',
- title: 'Sunzee'
- },
- 'localhost': {
- favicon: 'favicon.ico',
- title: 'Sunzee'
- },
- 'portalmcc.com.cn': {
- favicon: 'aetiFavicon.ico',
- title: 'AETI GLOBAL'
- }
- };
- const currentDomain = window.location.hostname;
- const settings = domainSettings[currentDomain]
- if (settings) {
- document.getElementById('favicon').setAttribute('href', settings.favicon)
- document.title = settings.title
- } else {
- console.log('Domain settings not found');
- }
- </script>
- </body>
- </html>
|