|
@@ -5,8 +5,8 @@
|
|
|
<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" href="<%= BASE_URL %>favicon.ico">
|
|
|
- <title>Sunzee</title>
|
|
|
+ <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>
|
|
@@ -18,6 +18,35 @@
|
|
|
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>
|