mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15: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) => {
|
||||||
|
try {
|
||||||
await request.put(`providers/proxies/${proxyProviderName}`)
|
await request.put(`providers/proxies/${proxyProviderName}`)
|
||||||
|
} catch {}
|
||||||
await updateProxy()
|
await updateProxy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user