mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-02-11 04:00:32 +08:00
fix style
This commit is contained in:
parent
644390f7ab
commit
a7a8578c41
@ -65,6 +65,25 @@ const Tun: React.FC = () => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<SettingCard>
|
<SettingCard>
|
||||||
|
{platform === 'win32' && (
|
||||||
|
<SettingItem title="重设防火墙" divider>
|
||||||
|
<Button
|
||||||
|
size="sm"
|
||||||
|
color="primary"
|
||||||
|
isLoading={loading}
|
||||||
|
onPress={() => {
|
||||||
|
setLoading(true)
|
||||||
|
setupFirewall()
|
||||||
|
.then(() => {
|
||||||
|
new Notification('防火墙重设成功')
|
||||||
|
})
|
||||||
|
.finally(() => setLoading(false))
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
重设防火墙
|
||||||
|
</Button>
|
||||||
|
</SettingItem>
|
||||||
|
)}
|
||||||
<SettingItem title="Tun 模式堆栈" divider>
|
<SettingItem title="Tun 模式堆栈" divider>
|
||||||
<Tabs
|
<Tabs
|
||||||
size="sm"
|
size="sm"
|
||||||
@ -135,7 +154,7 @@ const Tun: React.FC = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
<SettingItem title="DNS 劫持" divider>
|
<SettingItem title="DNS 劫持">
|
||||||
<Input
|
<Input
|
||||||
size="sm"
|
size="sm"
|
||||||
className="w-[50%]"
|
className="w-[50%]"
|
||||||
@ -145,23 +164,6 @@ const Tun: React.FC = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
<SettingItem title="重设防火墙">
|
|
||||||
<Button
|
|
||||||
size="sm"
|
|
||||||
color="primary"
|
|
||||||
isLoading={loading}
|
|
||||||
onPress={() => {
|
|
||||||
setLoading(true)
|
|
||||||
setupFirewall()
|
|
||||||
.then(() => {
|
|
||||||
new Notification('防火墙重设成功')
|
|
||||||
})
|
|
||||||
.finally(() => setLoading(false))
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
重设防火墙
|
|
||||||
</Button>
|
|
||||||
</SettingItem>
|
|
||||||
</SettingCard>
|
</SettingCard>
|
||||||
</BasePage>
|
</BasePage>
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user