祁鹏飞 2 сар өмнө
parent
commit
f73331a58b
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      App.vue

+ 1 - 1
App.vue

@@ -5,7 +5,7 @@ export default {
 	},
 	async onShow() {
 		const getMessageCount = async () => {
-			if(!this.$store.state.user.token) return
+			if(!this.$store.state.token) return
 			let res = await this.$http.get('/message/getMessageCount')
 			if (res.code == 200) {
 				uni.setTabBarBadge({