<template>
	<view>
		
	</view>
</template>

<script setup>
	import {
		ref
	} from "vue"
	import {
		WXGetOpenid
	} from "@/api"
	import {
		onLoad
	} from "@dcloudio/uni-app"
	const WXGetOpenidFuc = () => {
		WXGetOpenid().then(res => {
			if (res.status) { 
				sessionStorage.setItem("access_token", res.data.token)
				sessionStorage.setItem("refresh_token", res.data.refresh_token) 
				uni.reLaunch({
					url:'/pages/user/list'
				})
			}
		})
	}
	onLoad(() => {
		 WXGetOpenidFuc()
	})
</script>

<style>

</style>
