Fix(云灵AI):县域AI删除历史对话使用独立接口和参数

This commit is contained in:
lifizer
2026-06-29 17:26:18 +08:00
parent 785b59c2ad
commit 7ee65297de
3 changed files with 18 additions and 5 deletions
+3 -3
View File
@@ -80,7 +80,7 @@ function baseRequest(options) {
_params = {
params: params
}
} else if (['post', 'POST'].includes(options.method)) {
} else if (['post', 'POST', 'put', 'PUT', 'patch', 'PATCH', 'delete', 'DELETE'].includes(options.method)) {
_params = params || data
}
@@ -153,7 +153,7 @@ function baseRequest(options) {
* 参考文档 https://www.kancloud.cn/yunye/axios/234845
*
*/
const request = ["post", "put", "patch"].reduce((request, method) => {
const request = ["post", "put", "patch", "delete"].reduce((request, method) => {
/**
*
* @param url string 接口地址
@@ -169,7 +169,7 @@ const request = ["post", "put", "patch"].reduce((request, method) => {
return request;
}, {});
["get", "delete", "head"].forEach(method => {
["get", "head"].forEach(method => {
/**
*
* @param url string 接口地址