fix: 部署向导页强制刷新设备发现,避免 UDP 丢包导致设备不显示

This commit is contained in:
tian 2026-07-24 11:19:30 +08:00
parent c52fc4c819
commit 5c53b07301
2 changed files with 4 additions and 0 deletions

View File

@ -1361,6 +1361,10 @@ func (u *UI) actionConsoleSave(w http.ResponseWriter, r *http.Request) {
func (u *UI) pageWizard(w http.ResponseWriter, r *http.Request) {
u.ensureDevicesLoaded()
// Force a fresh discovery to pick up all devices reliably.
if u.discovery != nil {
u.discovery.SearchDefault()
}
data := PageData{Title: "部署向导"}
data.Devices = u.registry.GetDevices()
if u.preview != nil {

Binary file not shown.