mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
fix a little
This commit is contained in:
parent
716ed4ff50
commit
fccd50dc0a
@ -10,7 +10,7 @@ const DNSCard: React.FC = () => {
|
|||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const match = location.pathname.includes('/dns')
|
const match = location.pathname.includes('/dns')
|
||||||
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig(true)
|
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig()
|
||||||
const { dns, tun } = controledMihomoConfig || {}
|
const { dns, tun } = controledMihomoConfig || {}
|
||||||
const { enable = true } = dns || {}
|
const { enable = true } = dns || {}
|
||||||
const {
|
const {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { mihomoCloseAllConnections, patchMihomoConfig } from '@renderer/utils/ip
|
|||||||
import { Key } from 'react'
|
import { Key } from 'react'
|
||||||
|
|
||||||
const OutboundModeSwitcher: React.FC = () => {
|
const OutboundModeSwitcher: React.FC = () => {
|
||||||
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig(true)
|
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig()
|
||||||
const { appConfig } = useAppConfig()
|
const { appConfig } = useAppConfig()
|
||||||
const { autoCloseConnection = true } = appConfig || {}
|
const { autoCloseConnection = true } = appConfig || {}
|
||||||
const { mode } = controledMihomoConfig || {}
|
const { mode } = controledMihomoConfig || {}
|
||||||
|
|||||||
@ -11,7 +11,7 @@ const SniffCard: React.FC = () => {
|
|||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const match = location.pathname.includes('/sniffer')
|
const match = location.pathname.includes('/sniffer')
|
||||||
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig(true)
|
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig()
|
||||||
const { sniffer } = controledMihomoConfig || {}
|
const { sniffer } = controledMihomoConfig || {}
|
||||||
const { enable } = sniffer || {}
|
const { enable } = sniffer || {}
|
||||||
const {
|
const {
|
||||||
|
|||||||
@ -12,7 +12,7 @@ const SysproxySwitcher: React.FC = () => {
|
|||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const match = location.pathname.includes('/sysproxy')
|
const match = location.pathname.includes('/sysproxy')
|
||||||
const { appConfig, patchAppConfig } = useAppConfig(true)
|
const { appConfig, patchAppConfig } = useAppConfig()
|
||||||
const { sysProxy } = appConfig || {}
|
const { sysProxy } = appConfig || {}
|
||||||
const { enable } = sysProxy || {}
|
const { enable } = sysProxy || {}
|
||||||
const {
|
const {
|
||||||
|
|||||||
@ -17,7 +17,7 @@ const TunSwitcher: React.FC = () => {
|
|||||||
const match = location.pathname.includes('/tun') || false
|
const match = location.pathname.includes('/tun') || false
|
||||||
const [openPasswordModal, setOpenPasswordModal] = useState(false)
|
const [openPasswordModal, setOpenPasswordModal] = useState(false)
|
||||||
const { appConfig, patchAppConfig } = useAppConfig()
|
const { appConfig, patchAppConfig } = useAppConfig()
|
||||||
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig(true)
|
const { controledMihomoConfig, patchControledMihomoConfig } = useControledMihomoConfig()
|
||||||
const { tun } = controledMihomoConfig || {}
|
const { tun } = controledMihomoConfig || {}
|
||||||
const { enable } = tun || {}
|
const { enable } = tun || {}
|
||||||
const {
|
const {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user