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.
29 lines
617 B
29 lines
617 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 {
|
|
}
|
|
},
|
|
onPullDownRefresh() {
|
|
setTimeout(()=>{
|
|
uni.stopPullDownRefresh()
|
|
},1500)
|
|
let token = this.$store.state.user.vuex_loginInfo.accessToken
|
|
if(token) {
|
|
this.$store.dispatch('getCity')
|
|
}
|
|
},
|
|
|
|
}
|