mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
fix: update proxy provider api may throw
This commit is contained in:
parent
350fd56bc9
commit
ad46745329
@ -105,7 +105,9 @@ export function useProxies() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateProviderByProviderName = async (proxyProviderName: string) => {
|
const updateProviderByProviderName = async (proxyProviderName: string) => {
|
||||||
await request.put(`providers/proxies/${proxyProviderName}`)
|
try {
|
||||||
|
await request.put(`providers/proxies/${proxyProviderName}`)
|
||||||
|
} catch {}
|
||||||
await updateProxy()
|
await updateProxy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user