()
| 1480 | }; |
| 1481 | |
| 1482 | const testAllChannels = async () => { |
| 1483 | const res = await API.get(`/api/channel/test`); |
| 1484 | const { success, message } = res.data; |
| 1485 | if (success) { |
| 1486 | showInfo(t('已成功开始测试所有已启用通道,请刷新页面查看结果。')); |
| 1487 | } else { |
| 1488 | showError(message); |
| 1489 | } |
| 1490 | }; |
| 1491 | |
| 1492 | const deleteAllDisabledChannels = async () => { |
| 1493 | const res = await API.delete(`/api/channel/disabled`); |
no test coverage detected