diff --git a/src/App.vue b/src/App.vue index ed9ab8fbf37faede6cd0f704016f566ab0898a8d..38612175253b2aff32c62c2f396e9a835b9b9144 100644 --- a/src/App.vue +++ b/src/App.vue @@ -104,11 +104,14 @@ export default { const finish = finish_reason === 'stop' || finish_reason === 'length'; const content = data.choices[0].delta.content; + console.log(222, content); + if (finish) { this.loading = false; } else if (content) { const text = content; dialog.text += text; + if (content.indexOf('超过访问限制') >=0) this.loading = false; } }, onerror: (err) => {