🐛 未读消息数显示问题修复

This commit is contained in:
ronger 2021-12-21 19:51:47 +08:00
parent a62f3b0b97
commit 7d4fb252b6
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@
_ts.$axios.$get('/api/notification/unread').then(function (res) {
if (res) {
_ts.$set(_ts, 'notifications', res.notifications);
_ts.$set(_ts, 'notificationNumbers', res.notifications.length == 0 ? "" : res.notifications.length);
_ts.$set(_ts, 'notificationNumbers', res.pagination.total === 0 ? "" : res.pagination.total);
}
})
}

View File

@ -289,7 +289,7 @@ export default {
_ts.$axios.$get('/api/notification/unread').then(function (res) {
if (res) {
_ts.$set(_ts, 'notifications', res.notifications);
_ts.$set(_ts, 'notificationNumbers', res.notifications.length == 0 ? "" : res.notifications.length);
_ts.$set(_ts, 'notificationNumbers', res.pagination.total === 0 ? "" : res.pagination.total);
}
})
}