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