<template>
</template>

<script>
	export default {
		onShow() {
			let role = uni.getStorageSync('role');
			let userInfo = uni.getStorageSync('userInfo');
			if(role === '4' && userInfo){
				uni.switchTab({
				    url: '/pages/index/index'
				});
			}else{
				uni.navigateTo({
					url: '/pages/login/index?id=4'
				});
			}
		},
		methods:{
			
		}
	}
</script>

<style>
</style>
