|
@@ -58,7 +58,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex';
|
|
|
-import { getToken, removeToken } from '@/utils/auth';
|
|
|
+import { getToken, removeToken, getConfig } from '@/utils/auth';
|
|
|
import { GetLanguageList, GetChildSysList_CanEnter_PC } from '@/api/app';
|
|
|
import { loadLanguageAsync } from '@/locales/i18n';
|
|
|
import { IsExistMyMessage_NotRead } from '@/api/user';
|
|
@@ -100,6 +100,16 @@ export default {
|
|
|
|
|
|
this.getLangList();
|
|
|
}
|
|
|
+
|
|
|
+ const { token: config, isHas: isConfigHas } = getConfig();
|
|
|
+ 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;
|
|
|
+ console.log(config.title_icon_url);
|
|
|
+ document.getElementsByTagName('head')[0].appendChild(link);
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
// 切换导航
|