(id, name)
| 1403 | } |
| 1404 | |
| 1405 | async function deleteCpaService(id, name) { |
| 1406 | const confirmed = await confirm(`确定要删除 CPA 服务「${name}」吗?`); |
| 1407 | if (!confirmed) return; |
| 1408 | try { |
| 1409 | await api.delete(`/cpa-services/${id}`); |
| 1410 | toast.success('已删除'); |
| 1411 | loadCpaServices(); |
| 1412 | } catch (e) { |
| 1413 | toast.error('删除失败: ' + e.message); |
| 1414 | } |
| 1415 | } |
| 1416 | |
| 1417 | async function testCpaServiceById(id) { |
| 1418 | try { |
nothing calls this directly
no test coverage detected