fix: call ensureDevicesLoaded in diagnostics page

This commit is contained in:
tian 2026-05-06 16:47:42 +08:00
parent 697505fdf2
commit 698586efac

View File

@ -1418,6 +1418,7 @@ func (u *UI) actionModelSync(w http.ResponseWriter, r *http.Request) {
}
func (u *UI) pageDiagnostics(w http.ResponseWriter, r *http.Request) {
u.ensureDevicesLoaded()
data := PageData{Title: "日志审计", Devices: u.registry.GetDevices()}
if u.auditRepo != nil {
items, err := u.auditRepo.List()