From d33680fcf09346f80007800dcea0a2463609c3e7 Mon Sep 17 00:00:00 2001 From: 622eda98dfef6c4fdb84ccca <622eda98dfef6c4fdb84ccca@devide> Date: Thu, 1 Jun 2023 03:08:22 +0000 Subject: [PATCH] Auto Commit --- src/App.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.vue b/src/App.vue index ed9ab8f..3861217 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) => { -- GitLab