mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-23 21:35:36 +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…
Reference in New Issue
Block a user