(id)
| 809 | |
| 810 | // 删除服务 |
| 811 | async function deleteService(id) { |
| 812 | const confirmed = await confirm('确定要删除此邮箱服务配置吗?'); |
| 813 | if (!confirmed) return; |
| 814 | |
| 815 | try { |
| 816 | await api.delete(`/email-services/${id}`); |
| 817 | toast.success('服务已删除'); |
| 818 | loadEmailServices(); |
| 819 | } catch (error) { |
| 820 | toast.error('删除失败: ' + error.message); |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | // 更新选中的服务 |
| 825 | function updateSelectedServices() { |
nothing calls this directly
no test coverage detected