修复运行日志菜单未读数字可能不会消失的问题

This commit is contained in:
刘祥超
2022-08-04 18:48:50 +08:00
parent f78daa98bc
commit 4e4d9e33f0

View File

@@ -46,9 +46,8 @@ func init() {
if err != nil {
logs.Error(err)
} else {
var countNodeLogs = countNodeLogsResp.Count
if countNodeLogs > 0 {
countUnreadNodeLogs = countNodeLogs
countUnreadNodeLogs = countNodeLogsResp.Count
if countUnreadNodeLogs > 0 {
if countUnreadNodeLogs >= 100 {
countUnreadNodeLogs = 99
}