🐛 Fix HTTP proxy Unable add.

This commit is contained in:
刘嘉伟 committed 2026-03-09 14:28:58 +08:00
1 parent 72a19ef017
commit e14fca351e
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -572,13 +572,14 @@ export function AddProxyDialog({ open, onOpenChange, onSubmit, initialData }: Ad
!formData.type ||
!formData.localIp ||
!formData.localPort ||
!formData.remotePort ||
(!isHttpType && !formData.remotePort) ||
(isHttpType && !formData.subdomain && !formData.customDomains) ||
!!errors.serverId ||
!!errors.name ||
!!errors.type ||
!!errors.localIp ||
!!errors.localPort ||
!!errors.remotePort ||
(!isHttpType && !!errors.remotePort) ||
loading
}
onClick={handleSubmit}
+1 -1
View File
@@ -128,7 +128,7 @@ export function useProxies() {
setSubmitting(true);
const body = data || formData;
await pb.collection("fh_proxies").create(body);
await pb.collection("fh_proxies").create({ bootStatus: "offline", ...body });
await fetchProxies();
closeDialog();