提交 50d48e2b 编写于 作者: D DebugIsFalse

Update [id].vue

上级 1d329fd8
......@@ -197,11 +197,15 @@ const handleFormFetchData = (fetchData) => {
message = JSON.parse(fetchData)
} catch(error) { }
if (Object.keys(message).length === 0) return
const { meta, choices } = message
const { meta, choices, error } = message
nextTick(() => {
scrollToView()
})
// 处理报错信息
// 处理错误信息
if (error === '403') {
}
// 不处理异常数据
if (!meta) {
handleStopGenerate()
}
......@@ -224,7 +228,6 @@ const handleFormFetchData = (fetchData) => {
}
}
const handleMessage = (event) => {
console.log(`event.data:`, event.data)
if (event.data === markedEnd) {
asking.value = false
resetAnsLoading()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册