mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-01 08:36:38 +08:00
fix: remove duplicate maxConn input in user form (#467)
This commit is contained in:
@@ -1529,17 +1529,6 @@ export default function UserPage() {
|
||||
setUserForm((prev) => ({ ...prev, maxConn: value }));
|
||||
}}
|
||||
/>
|
||||
<Input
|
||||
label="最大连接数"
|
||||
placeholder="0 或空表示不限制"
|
||||
type="number"
|
||||
min="0"
|
||||
value={userForm.maxConn === 0 ? "" : String(userForm.maxConn || "")}
|
||||
onChange={(e) => {
|
||||
const value = Math.max(Number(e.target.value) || 0, 0);
|
||||
setUserForm((prev) => ({ ...prev, maxConn: value }));
|
||||
}}
|
||||
/>
|
||||
<Input
|
||||
isRequired
|
||||
label="规则数量"
|
||||
|
||||
Reference in New Issue
Block a user