<script>
	import {
		mapGetters,
		mapActions
	} from 'vuex'
	import config from '@/admin.config.js'
	import { version } from './package.json'
	export default {
		globalData: {
			baseurl: 'https://www.xn--gmq052a5d255v.com/cloud-mall',
		},
		computed: {
			...mapGetters({
				isTokenValid: 'user/isTokenValid'
			})
		},
		methods: {
			
		},
		onPageNotFound(msg) {
			uni.redirectTo({
				url: config.error.url
			})
		},
		onLaunch: function() {
			console.log(this.isTokenValid)
			if (!this.isTokenValid) {
				// uni.redirectTo({
				// 	url: config.login.url
				// })
			} else {
				// this.init()
			}
		}
	}
</script>

<style>
	@import '@/common/uni.css';
</style>
