提交 bc913dfd 编写于 作者: D DebugIsFalse

fix: 命中敏感词直接删除当前数据

上级 68687c0a
......@@ -280,9 +280,17 @@ function handleFormFetchData (fetchData) {
}
// 处理审核异常
if (handleSetServiceErrorInfo(message)) {
const errorInfo = handleSetServiceErrorInfo(message)
Object.assign(askingData.value, { article: errorInfo, source: [], processStatus: 'finish' })
// const errorInfo = handleSetServiceErrorInfo(message)
// Object.assign(askingData.value, { article: errorInfo, source: [], processStatus: 'finish' })
recommendQuestions.value = []
askingData.value = {};
const toast = useToast()
toast.add({
icon: 'i-heroicons-exclamation-triangle-20-solid',
timeout: 3000,
title: '内容包含敏感信息,请修改后重试',
color: 'red'
})
handleStopGenerate()
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册