<template>
</template>

<script>
	import {getToken} from '@/common/auth.js'
	export default {
		onShow(options) {
			
			if(getToken()){
				uni.switchTab({
				    url:  '/pages/index/index'   
				});
			}else{
				uni.navigateTo({
				    url:  '/pages/login/login'   
				});
			}
		},
	}
</script>

<style>
</style>