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

Update [id].vue

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