|
|
|
@ -136,7 +136,7 @@ const sendHandle = async () => {
|
|
|
|
|
messageList.value[lastIndex.value].loading = false
|
|
|
|
|
keyWord.value = ''
|
|
|
|
|
if (res) {
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!targetData.value.filter) targetData.value.filter = filterData[targetData.value.key]
|
|
|
|
|
if (res.type === "text" || !targetData.value.filter) {
|
|
|
|
@ -145,6 +145,7 @@ const sendHandle = async () => {
|
|
|
|
|
}
|
|
|
|
|
targetData.value.lastMessagesItem = messageList.value[lastIndex.value] //保存最后一次问答
|
|
|
|
|
targetData.value.option.dataset = newFunctionHandle(res.data, res, targetData.value.filter)
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
window['$message'].warning('没有拿到返回值,请检查接口!')
|
|
|
|
|