@@ -14,7 +14,7 @@ export const getUserInfo = () => {
// tab数字角标
uni.setTabBarBadge({
index: 2,
- text: data.unread + ""
+ text: data.unread ? data.unread + "" : ""
})
uni.setStorageSync('recycle_mobile_user', data);
resolve(data);