mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 15:20:25 +08:00
对运行日志和IP名单进行操作时,及时更新左侧菜单Badge
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user