From ea886c384de14eaf2fe06cc6c1b9571ac628da02 Mon Sep 17 00:00:00 2001 From: Oren Zhang Date: Sat, 27 Apr 2024 11:09:12 +0800 Subject: [PATCH] feat: add more error message display --- src/components/ChatInput.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ChatInput.vue b/src/components/ChatInput.vue index 02529d7..e0d8b54 100644 --- a/src/components/ChatInput.vue +++ b/src/components/ChatInput.vue @@ -133,7 +133,10 @@ const doChat = async () => { }); } read(); - }, () => emits('setChatLoading', false)); + }, (err) =>{ + emits('setChatLoading', false); + Message.error(err.message); + }); }; const reGenerate = () => {