<script>
	// import routingIntercept  from '@/common/permission.js'
	import {
		getToken
	} from '@/common/auth.js'
	export default {
		onLoad(e) {
			console.log("wwwww",e);
		},
		onLaunch: function() {
			if (getToken()) {
				// uni.reLaunch({
				// 	url: '/pages/index/index'
				// })

			} else {
				uni.reLaunch({
					url: '/pages/login/index'
				})
			}
			// routingIntercept()
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@font-face {
		/* 	font-family: 'puhui';
		src: url('./static/fonts/AlibabaPuHuiTi-3-65-Medium.ttf'); */
	}

	.global-font {
		/* font-family: 'puhui';
		font-size: 16px;
		color: #333; */
	}

	uni-page-body,
	html,
	body {
		height: 100%;
	}
</style>