docs: update install.md
Some checks failed
Coverage CI / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
Ubuntu CI / build (push) Has been cancelled

This commit is contained in:
Daniel Ding
2025-04-24 17:03:41 +08:00
parent afe6255777
commit b025178053
10 changed files with 57 additions and 181 deletions

View File

@@ -65,7 +65,7 @@ func (h Network) Post(w http.ResponseWriter, r *http.Request) {
return
}
cs.CorrectNetwork(obj)
cs.CorrectNetwork(obj, "json")
if obj := cs.GetNetwork(obj.Name); obj != nil {
h.Switcher.AddNetwork(obj.Name)
} else {