From 378689da87a63e2a8166236e56124ec46abd8805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Tue, 10 Jun 2025 21:19:00 +0800 Subject: [PATCH] Oh, I think the translating system works now? --- components/app/windows/newsView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/app/windows/newsView.vue b/components/app/windows/newsView.vue index 4951807..32a3354 100644 --- a/components/app/windows/newsView.vue +++ b/components/app/windows/newsView.vue @@ -82,7 +82,9 @@ const aiSummary = async () => { activateAiSummary.value = true; isGenerating.value = true; try { - const req = await fetch(`/api/ai/summarize/${slug}?lang=${String(locale)}`); + const req = await fetch( + `/api/ai/summarize/${slug}?lang=${String(locale.value)}`, + ); const reader = req.body?.getReader(); const decoder = new TextDecoder(); while (reader) {