<template>
	<view class="container">
		<view class="loading">正在跳转...</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		onLoad() {
			const token = uni.getStorageSync("access_token");
			if (token) {
				uni.reLaunch({
					url: '/pages/CheckItemMainList'
				});
			} else {
				uni.reLaunch({
					url: '/pages/Login'
				});
			}
		}
	}
</script>

<style>
	.container {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 100vh;
		background: #F5F7FA;
	}
	
	.loading {
		color: #999999;
		font-size: 28rpx;
	}
</style>