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