|
@@ -36,6 +36,15 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.handleUserAgentRoot();
|
|
|
+ const { token: config, isHas: isConfigHas } = getConfig();
|
|
|
+ // 有 config 信息时,设置 icon
|
|
|
+ if (isConfigHas) {
|
|
|
+ const link = document.querySelector("link[rel*='icon']") || document.createElement('link');
|
|
|
+ link.type = 'image/x-icon';
|
|
|
+ link.rel = 'shortcut icon';
|
|
|
+ link.href = config.title_icon_url;
|
|
|
+ document.getElementsByTagName('head')[0].appendChild(link);
|
|
|
+ }
|
|
|
// ['click', 'mousewheel', 'mousemove'].forEach((item) => {
|
|
|
// window.addEventListener(item, () => {
|
|
|
// sessionStorage.setItem('lastClickTime', new Date().getTime());
|