|
@@ -5,6 +5,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { getConfig } from '@/utils/auth';
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'App',
|
|
name: 'App',
|
|
created() {
|
|
created() {
|
|
@@ -28,6 +30,16 @@ export default {
|
|
// 处理 Promise 拒绝错误
|
|
// 处理 Promise 拒绝错误
|
|
// console.error('未捕获的 Promise.reject 错误:', reason);
|
|
// console.error('未捕获的 Promise.reject 错误:', reason);
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ const config = getConfig();
|
|
|
|
+ if (config) {
|
|
|
|
+ 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);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|