(id, name)
| 1879 | } |
| 1880 | |
| 1881 | async function deleteNewApiService(id, name) { |
| 1882 | const confirmed = await confirm(`确定要删除 new-api 服务「${name}」吗?`); |
| 1883 | if (!confirmed) return; |
| 1884 | try { |
| 1885 | await api.delete(`/new-api-services/${id}`); |
| 1886 | toast.success('已删除'); |
| 1887 | loadNewApiServices(); |
| 1888 | } catch (e) { |
| 1889 | toast.error('删除失败: ' + e.message); |
| 1890 | } |
| 1891 | } |
| 1892 | |
| 1893 | async function testNewApiServiceById(id) { |
| 1894 | try { |
nothing calls this directly
no test coverage detected