From a7a4551528af2ff0d9248491fe7c976c530c6d48 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Sun, 28 Sep 2025 16:11:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(SSR):=20=E5=B0=86=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E9=A1=B5=E6=94=B9=E4=B8=BASSR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用Nuxt的useAsyncData - 添加i18n信息 --- app/pages/solutions/[...slug].vue | 109 ++++++++++++++++++------------ app/pages/solutions/index.vue | 46 ++++++------- i18n/locales/en.json | 3 + i18n/locales/zh.json | 3 + 4 files changed, 92 insertions(+), 69 deletions(-) diff --git a/app/pages/solutions/[...slug].vue b/app/pages/solutions/[...slug].vue index 6803705..79ac81a 100644 --- a/app/pages/solutions/[...slug].vue +++ b/app/pages/solutions/[...slug].vue @@ -1,36 +1,52 @@ diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 3922894..cfd549c 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -51,6 +51,9 @@ "product-not-found": "Product Not Found", "product-not-found-desc": "Sorry, the product you are looking for does not exist or has been removed.", "back-to-productions": "Back to Products", + "solution-not-found": "Solution Not Found", + "solution-not-found-desc": "Sorry, the solution you are lokking for does not exist or has been removed.", + "back-to-solutions": "Back to Solutions", "no-content-available": "No detailed information available", "loading": "Loading...", "our-productions": "Our Productions", diff --git a/i18n/locales/zh.json b/i18n/locales/zh.json index 9a94dde..cd59a96 100644 --- a/i18n/locales/zh.json +++ b/i18n/locales/zh.json @@ -51,6 +51,9 @@ "product-not-found": "产品未找到", "product-not-found-desc": "抱歉,您访问的产品不存在或已被删除。", "back-to-productions": "返回产品列表", + "solution-not-found": "解决方案未找到", + "solution-not-found-desc": "抱歉,您访问的解决方案不存在或已被删除", + "back-to-solutions": "返回解决方案列表", "no-content-available": "暂无详细信息", "loading": "加载中...", "our-productions": "我们的产品",