mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-02 07:57:38 +08:00
Show detailed mark-all-read message only for admins
This commit is contained in:
@@ -333,7 +333,11 @@ export default {
|
|||||||
if (n.type !== 'REGISTER_REQUEST') n.read = true
|
if (n.type !== 'REGISTER_REQUEST') n.read = true
|
||||||
})
|
})
|
||||||
await fetchUnreadCount()
|
await fetchUnreadCount()
|
||||||
|
if (authState.role === 'ADMIN') {
|
||||||
toast.success('已读所有消息(注册请求除外)')
|
toast.success('已读所有消息(注册请求除外)')
|
||||||
|
} else {
|
||||||
|
toast.success('已读所有消息')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user