提交 bc913dfd 编写于 作者: D DebugIsFalse

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

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