(id)
| 1198 | |
| 1199 | // 删除代理 |
| 1200 | async function deleteProxyItem(id) { |
| 1201 | const confirmed = await confirm('确定要删除此代理吗?'); |
| 1202 | if (!confirmed) return; |
| 1203 | |
| 1204 | try { |
| 1205 | await api.delete(`/settings/proxies/${id}`); |
| 1206 | toast.success('代理已删除'); |
| 1207 | loadProxies(); |
| 1208 | } catch (error) { |
| 1209 | toast.error('删除失败: ' + error.message); |
| 1210 | } |
| 1211 | } |
| 1212 | |
| 1213 | // 测试所有代理 |
| 1214 | async function handleTestAllProxies() { |
nothing calls this directly
no test coverage detected