<template>
	<div id="app">
		<router-view />
	</div>
</template>

<script>
import { imgHostUrl } from '@/config/env';
export default {
	created() {
		/**
		 * 姜枫 2021.05.04
		 * **/
		let link = document.querySelector("link[rel*='icon']") || document.createElement('link');
		link.type = 'image/x-icon';
		link.rel = 'shortcut icon';
		link.href = `${imgHostUrl}favicon.ico`;
		document.getElementsByTagName('head')[0].appendChild(link);
		// let source = this.$project == 'saas' ? 'saas' : 'admin';
		// if (source == 'admin') {
		// 	localStorage.setItem('source', source);
		// 	localStorage.setItem('account', 12358);
		// }
	}
};
</script>

<style lang="stylus" src="./assets/css/index.styl"></style>
