mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
fix: console selectedKeys warning
This commit is contained in:
parent
f00600a83c
commit
d6f0d30f9a
@ -207,7 +207,11 @@ const Mihomo: React.FC = () => {
|
|||||||
className="w-[100px]"
|
className="w-[100px]"
|
||||||
size="sm"
|
size="sm"
|
||||||
aria-label={t('mihomo.selectCoreVersion')}
|
aria-label={t('mihomo.selectCoreVersion')}
|
||||||
selectedKeys={new Set([core])}
|
selectedKeys={new Set([
|
||||||
|
enableSmartCore
|
||||||
|
? 'mihomo-smart'
|
||||||
|
: (core === 'mihomo-smart' ? 'mihomo' : core)
|
||||||
|
])}
|
||||||
disallowEmptySelection={true}
|
disallowEmptySelection={true}
|
||||||
onSelectionChange={async (v) => {
|
onSelectionChange={async (v) => {
|
||||||
handleConfigChangeWithRestart('core', v.currentKey as 'mihomo' | 'mihomo-alpha' | 'mihomo-smart')
|
handleConfigChangeWithRestart('core', v.currentKey as 'mihomo' | 'mihomo-alpha' | 'mihomo-smart')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user