mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-17 22:30:25 +08:00
修复运行日志菜单未读数字可能不会消失的问题
This commit is contained in:
@@ -46,9 +46,8 @@ func init() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logs.Error(err)
|
logs.Error(err)
|
||||||
} else {
|
} else {
|
||||||
var countNodeLogs = countNodeLogsResp.Count
|
countUnreadNodeLogs = countNodeLogsResp.Count
|
||||||
if countNodeLogs > 0 {
|
if countUnreadNodeLogs > 0 {
|
||||||
countUnreadNodeLogs = countNodeLogs
|
|
||||||
if countUnreadNodeLogs >= 100 {
|
if countUnreadNodeLogs >= 100 {
|
||||||
countUnreadNodeLogs = 99
|
countUnreadNodeLogs = 99
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user