<template>
</template>

<script>
	import {islogin} from "@/common/js/common.js"
	export default {
		data() {
			return {
			}
		},
		onLoad(){
			if(islogin()){
				uni.switchTab({
					url: '/pages/index/index'
				});
			}else{
				uni.redirectTo({
					url: '/pages/login/login'
				});
			}
		}
	}
</script>

<style>
</style>