MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / deleteService

Function deleteService

static/js/settings.js:811–822  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

809
810// 删除服务
811async 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// 更新选中的服务
825function updateSelectedServices() {

Callers

nothing calls this directly

Calls 5

confirmFunction · 0.85
loadEmailServicesFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected