洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
691 B

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')
}
this.$store.dispatch('getCity')
},
}