From 8aef5f48bef0fde6683ab18f4faed7da777d8838 Mon Sep 17 00:00:00 2001 From: shaoyongjun Date: Thu, 16 May 2024 19:13:30 +0800 Subject: [PATCH] to:sync --- static/ai-chat.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/ai-chat.html b/static/ai-chat.html index 0bf5867..dbde194 100644 --- a/static/ai-chat.html +++ b/static/ai-chat.html @@ -149,7 +149,7 @@ * @returns 回复内容 */ function getContent(data) { - const match = data.match(contentPattern); + const match = data?.match(contentPattern); if (match) { return match[1]; } else {