bigfix
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { request } from '../../utils/request'
|
||||
import { NotificationItem } from '../../types/models'
|
||||
import { formatDateTime } from '../../utils/format'
|
||||
import { syncTabBarUnread } from '../../utils/tabbar'
|
||||
|
||||
Page({
|
||||
data: {
|
||||
@@ -14,7 +15,12 @@ Page({
|
||||
this.setData({ uuid })
|
||||
if (uuid) {
|
||||
this.fetchDetail()
|
||||
request({ url: `/notification/${uuid}/read`, method: 'POST', showError: false }).catch(() => {})
|
||||
request({ url: `/notification/${uuid}/read`, method: 'POST', showError: false })
|
||||
.then(() => {
|
||||
// 标记已读后同步红点:本页不是 tab 页,红点不会自动刷新
|
||||
syncTabBarUnread(true)
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user