对运行日志和IP名单进行操作时,及时更新左侧菜单Badge

This commit is contained in:
GoEdgeLab
2022-08-18 09:28:09 +08:00
parent 95c63c11e8
commit 0a5cc87c89
9 changed files with 48 additions and 0 deletions

View File

@@ -22,6 +22,22 @@ import (
var nodeLogsCountChanges = make(chan bool, 1)
var ipItemsCountChanges = make(chan bool, 1)
func NotifyNodeLogsCountChange() {
select {
case nodeLogsCountChanges <- true:
default:
}
}
func NotifyIPItemsCountChanges() {
select {
case ipItemsCountChanges <- true:
default:
}
}
// 运行日志
var countUnreadNodeLogs int64 = 0
var nodeLogsType = ""