<script>
	export default {
		created() {
			if (uni.getStorageSync('accessToken')) {
				uni.switchTab({
					url: '/pages/tabBar/home'
				})
			} else {
				uni.redirectTo({
					url: '/pages/login/login'
				});
			}
		}
	}
</script>
<style lang="scss">
	/*uview全局样式*/
	@import "uview-ui/index.scss";

	page {
		background-color: #f6f6f6;
	}
	uni-modal {
		z-index: 19999 !important;
	}
</style>
