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