Browse Source

fix(config): 更新网站图标配置

- 将网站图标从 avatar.png 更改为 xj.ico
- 更新 init.js 中的图标路径配置
- 统一生产环境和开发环境的图标引用
master
qiankanghui 4 days ago
parent
commit
5d48154266
  1. 2
      index.html
  2. 4
      static/config/init.js
  3. BIN
      static/img/favicon.ico
  4. BIN
      static/img/xj.ico

2
index.html

@ -10,7 +10,7 @@
<script>document.write('<script src="./config/index.js?t=' + new Date().getTime() + '"><\/script>');</script>
<% }else { %>
<!-- 开发环境 -->
<link rel="shortcut icon" type="image/x-icon" href="./static/img/avatar.png">
<link rel="shortcut icon" type="image/x-icon" href="./static/img/xj.ico">
<script src="./static/config/index.js"></script>
<script src="./static/plugins/mock-1.0.0-beta3/mock-min.js"></script>
<script src="./static/plugins/echarts-3.8.5/echarts.common.min.js"></script>

4
static/config/init.js

@ -3,7 +3,7 @@
*/
;(function() {
var resList = {
icon: window.SITE_CONFIG.cdnUrl + '/static/img/favicon.ico',
icon: window.SITE_CONFIG.cdnUrl + '/static/img/xj.ico',
css: [
window.SITE_CONFIG.cdnUrl + '/static/css/app.css',
],
@ -73,4 +73,4 @@
createScripts();
}
};
})();
})();

BIN
static/img/favicon.ico

Before

Width: 427  |  Height: 525  |  Size: 42 KiB

BIN
static/img/xj.ico

After

Width: 32  |  Height: 33  |  Size: 2.4 KiB

Loading…
Cancel
Save