<template>
	<view></view>
</template>
<script>
	export default {
		created() {
			if (uni.getStorageSync('accessToken')) {
				uni.switchTab({
					url: '/pages/tabBar/home'
				})
			} else {
				uni.redirectTo({
					url: '/pages/login/login'
				})
			}
		}
	}
</script>
