()
| 145 | }; |
| 146 | |
| 147 | const deleteHistoryLogs = async () => { |
| 148 | console.log(inputs); |
| 149 | const res = await API.delete(`/api/log/?target_timestamp=${Date.parse(historyTimestamp) / 1000}`); |
| 150 | const { success, message, data } = res.data; |
| 151 | if (success) { |
| 152 | showSuccess(`${data} 条日志已清理!`); |
| 153 | return; |
| 154 | } |
| 155 | showError('日志清理失败:' + message); |
| 156 | }; |
| 157 | |
| 158 | return ( |
| 159 | <Grid columns={1}> |
nothing calls this directly
no test coverage detected