From 7e915ff63f1a2b289786d444db39bfb47205e878 Mon Sep 17 00:00:00 2001 From: Twilight Date: Sat, 5 Oct 2024 21:38:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E9=AB=98=E4=BA=AE=EF=BC=8C=E5=88=99?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=BA=AF=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/Chat.vue | 2 +- src/components/chat/MessageList.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 8b1d3f0..e50c3e0 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -254,7 +254,7 @@ type Prompt = { }; const isMobile = useIsMobile(); -const userStore = useUserStore(); +// const userStore = useUserStore(); const chatStore = useChatStore(); const compositionStart = ref(false); const inputContainer: any = ref(null); diff --git a/src/components/chat/MessageList.vue b/src/components/chat/MessageList.vue index 34767ca..acdb608 100644 --- a/src/components/chat/MessageList.vue +++ b/src/components/chat/MessageList.vue @@ -135,10 +135,11 @@ import config from "@/config/config"; const mdIt = markdownIt(); const mdInited = ref(true); -const unsupportedLanguages = ["assembly"]; +const unsupportedLanguages = ["assembly", "blade"]; mdIt.options.highlight = function (str: string, lang: string) { if (!lang || unsupportedLanguages.includes(lang)) { - return str; + // return str; + lang = "text" } return hljs.highlight(str, { language: lang }).value;