<script>
	import { fetchPermissionList } from './util/QueryPermission.js';

	export default {
		onLaunch: function() {
			// 已登录时提前拉取权限列表，保证“未经过首页”等特殊入口也能拿到权限数据（非阻塞）
			if (uni.getStorageSync('session_key')) {
				fetchPermissionList();
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
<style lang="scss">
	@import "./static/font/iconfont.css";
	@import "./static/iconfont/iconfont.css";
	html {
		box-sizing: border-box;
		font-size: 28rpx !important;
	}

	.status_bar {
		height: 44px;
		width: 100%;
		background-color: #FFFFFF;
		position: fixed;
		top: 0;
		z-index: 99999;
	}
</style>
