import { mapState } from 'vuex' export default { computed: { ...mapState({ city: state=> state.user.vuex_cityInfo.city, vuex_cityInfo: state=> state.user.vuex_cityInfo, vuex_userInfo: state=> state.user.vuex_userInfo, userId: state=> state.user.vuex_loginInfo.userId, studentId: state=> state.user.vuex_userInfo.id, apiOk: state=> state.user.apiOk, }), }, data() { return { } }, onload() { uni.hideLoading() }, onPullDownRefresh() { setTimeout(()=>{ uni.stopPullDownRefresh() },1500) let token = this.$store.state.user.vuex_loginInfo.accessToken if(token) { this.$store.dispatch('getUserInfo') } // if(!this.vuex_cityInfo.lat) { // this.$store.dispatch('getCity') // } }, }