修改icon
This commit is contained in:
+3
-3
@@ -50,7 +50,7 @@
|
||||
position: fixed;
|
||||
}
|
||||
</style>
|
||||
<!-- <script>
|
||||
<script>
|
||||
window.onload = function(){
|
||||
var hostname=window.location.hostname;
|
||||
if(hostname=='bo.liche.cn'){
|
||||
@@ -68,10 +68,10 @@
|
||||
let link = document.querySelector("link[rel*='icon']") || document.createElement('link');
|
||||
link.type = 'image/x-icon';
|
||||
link.rel = 'shortcut icon';
|
||||
link.href = 'http://' + hostname + '/favicon_liche.ico';
|
||||
link.href = 'https://bo.liche.cn/favicon_liche.ico';
|
||||
}
|
||||
}
|
||||
</script> -->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
size: 120,
|
||||
margin: 0,
|
||||
image: {
|
||||
src: 'https://qs.haodian.cn/wechat_app/common/code-logo.png',
|
||||
src: '',
|
||||
width: 28,
|
||||
height: 28,
|
||||
x: undefined,
|
||||
@@ -110,6 +110,19 @@
|
||||
loading: false
|
||||
};
|
||||
},
|
||||
created() {
|
||||
let hostname = window.location.hostname;
|
||||
if (hostname == 'bo.liche.cn') {
|
||||
this.image.src =
|
||||
'https://qs.haodian.cn/web/images/project/Admin-ShiYu/code-logo.png';
|
||||
} else if (hostname == 'dongfeng.haodian.cn') {
|
||||
this.logo =
|
||||
'https://qs.haodian.cn/web/images/project/Admin-ShiYu/df-code-logo.png';
|
||||
} else {
|
||||
this.image.src =
|
||||
'https://qs.haodian.cn/web/images/project/Admin-ShiYu/code-logo.png';
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 是否开启响应式布局
|
||||
styleResponsive() {
|
||||
|
||||
Reference in New Issue
Block a user