<template>
	<view class="">
	</view>
</template>

<script>
	import {
		useUserStore
	} from '@/store/modules/user'
	export default {
		data() {
			return {
				token: ''
			}
		},
		onLoad(e) {
			this.token = e.token
			this.init()
		},
		methods: {
			init() {
				const userStore = useUserStore()
				userStore.setToken(this.token)
				this.show = false
				uni.hideLoading()
				uni.reLaunch({
					url: '/pages/index/index'
				});
			}
		}
	}
</script>

<style>
</style>