Fix(云灵AI):县域AI删除历史对话使用独立接口和参数
This commit is contained in:
@@ -113,7 +113,8 @@
|
||||
import {
|
||||
getChatList,
|
||||
deleteChatListByType,
|
||||
getCountyAiChatList
|
||||
getCountyAiChatList,
|
||||
deleteCountyChatListByType
|
||||
} from '@/api/chat/index'
|
||||
export default {
|
||||
name: 'AiHistoryList',
|
||||
@@ -167,7 +168,15 @@ export default {
|
||||
})
|
||||
},
|
||||
deleteRecords(type) {
|
||||
deleteChatListByType(type).then(res => {
|
||||
let reqFn = null
|
||||
let params = ''
|
||||
if (this.countyId) {
|
||||
reqFn = deleteCountyChatListByType
|
||||
params = `?countyId=${this.countyId}&type=${type}`
|
||||
} else {
|
||||
reqFn = deleteChatListByType
|
||||
}
|
||||
reqFn(type, params).then(res => {
|
||||
const { success } = res
|
||||
if (success) {
|
||||
this.getChatListReq()
|
||||
|
||||
Reference in New Issue
Block a user