mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
fix input error
This commit is contained in:
parent
85a324b428
commit
1750e05903
@ -147,6 +147,7 @@ const Tun: React.FC = () => {
|
||||
<SettingItem title="MTU" divider>
|
||||
<Input
|
||||
size="sm"
|
||||
type="number"
|
||||
className="w-[100px]"
|
||||
value={values.mtu.toString()}
|
||||
onValueChange={(v) => {
|
||||
@ -160,7 +161,8 @@ const Tun: React.FC = () => {
|
||||
className="w-[50%]"
|
||||
value={values.dnsHijack.join(',')}
|
||||
onValueChange={(v) => {
|
||||
setValues({ ...values, dnsHijack: v.split(',') })
|
||||
const arr = v !== '' ? v.split(',') : []
|
||||
setValues({ ...values, dnsHijack: arr })
|
||||
}}
|
||||
/>
|
||||
</SettingItem>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user