Commit b7f497cd by songbingqi

消息数量为0不展示小圆球

parent e23f1624
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
}, },
async getMessageCount() { async getMessageCount() {
const {data} = await Mine.getMessageCount() const {data} = await Mine.getMessageCount()
const num = data?data.data:'' const num = data&&Number(data.data)!=0?data.data:''
this.UnreadNumber = num this.UnreadNumber = num
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment