hide the provider when not available

This commit is contained in:
pompurin404 2024-08-09 17:00:42 +08:00
parent c17a48eb1d
commit e4735310e5
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,10 @@ const ProxyProvider: React.FC = () => {
})
}
if (!providers.length) {
return null
}
return (
<SettingCard>
<SettingItem title="代理集合" divider>

View File

@ -29,6 +29,10 @@ const RuleProvider: React.FC = () => {
})
}
if (!providers.length) {
return null
}
return (
<SettingCard>
<SettingItem title="规则集合" divider>