mirror of
https://github.com/cs-lazy-tools/ChatGPT-On-CS.git
synced 2026-08-28 18:17:40 +08:00
fix: 修复删除关键词的报错
This commit is contained in:
@@ -118,6 +118,8 @@
|
||||
- [x] 支持千牛平台的基础聊天功能
|
||||
- [x] 支持京麦平台的基础聊天功能
|
||||
- [ ] 支持多平台文章自动发送功能
|
||||
- [ ] 添加关闭自动回复,只使用关键词回复的功能
|
||||
- [ ] 添加延时随机时间
|
||||
- [ ] 优化各个平台的独立配置功能
|
||||
- [ ] 支持 Excel 导入回复内容
|
||||
- [ ] 支持导出回复内容到 Excel
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user