fix: 修复删除关键词的报错

This commit is contained in:
lrhh123
2024-05-03 09:02:17 +08:00
parent 6a48319b9d
commit e3516b071f
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -118,6 +118,8 @@
- [x] 支持千牛平台的基础聊天功能
- [x] 支持京麦平台的基础聊天功能
- [ ] 支持多平台文章自动发送功能
- [ ] 添加关闭自动回复,只使用关键词回复的功能
- [ ] 添加延时随机时间
- [ ] 优化各个平台的独立配置功能
- [ ] 支持 Excel 导入回复内容
- [ ] 支持导出回复内容到 Excel
+2 -2
View File
@@ -1,5 +1,5 @@
import { Platform, Reply, Config, Message } from './platform';
import { DELETE, GET, POST } from '../common/api/request';
import { GET, POST } from '../common/api/request';
export async function getPlatformList() {
const data = await GET<{
@@ -49,7 +49,7 @@ export async function updateReplyKeyword(keyword: Reply) {
}
export async function deleteReplyKeyword(id: number) {
await DELETE('/api/v1/reply/delete', { id });
await POST('/api/v1/reply/delete', { id });
}
export async function getConfig() {