(id)
| 664 | |
| 665 | // 测试服务 |
| 666 | async function testService(id) { |
| 667 | try { |
| 668 | const result = await api.post(`/email-services/${id}/test`); |
| 669 | if (result.success) toast.success('测试成功'); |
| 670 | else toast.error('测试失败: ' + (result.error || '未知错误')); |
| 671 | } catch (error) { |
| 672 | toast.error('测试失败: ' + error.message); |
| 673 | } |
| 674 | } |
| 675 | |
| 676 | // 删除服务 |
| 677 | async function deleteService(id, name) { |