<script>
	import { useUserStore } from '@/store'
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// 如果存在 token，直接跳转首页
			const userStore = useUserStore()
			if (userStore.token) {
				uni.reLaunch({ url: '/pages/index/index' })
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	 @import "uview-pro/index.scss";
	 @import "@/assets/css/page.scss";
	 @import "@/assets/css/components.scss";
	 @import "@/assets/icon/nbd-icon.css"
</style>
