<script>
	import { mapMutations } from 'vuex';
	export default {
		onLaunch() {
			// 缓存token
			uni.getStorage({
				key: "token",
				success: (res) => {
					this.loginIn(res.data);
				}
			})
		},
		methods: {
			...mapMutations(['loginIn'])
		}
	}
</script>
<style lang="scss">
	/* #ifndef APP-PLUS-NVUE */
	@import "/static/css/normalize";
	/* #endif */
	/* 顶部自定义导航留白 */
	.status_bar {
		width: 100%;
		height: var(--status-bar-height);
	}
</style>
