fix: update proxy provider api may throw

This commit is contained in:
kunish 2023-09-02 17:55:09 +08:00
parent 350fd56bc9
commit ad46745329
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -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()
}