From 9098a4cb30cc1c32d8f69d070b5517c0b83da694 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BD=90=E6=96=8C?= <1134087124@qq.com>
Date: Thu, 22 May 2025 13:36:01 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9B=BD=E9=99=85=E5=8C=96?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=B0=86=E9=BB=98=E8=AE=A4=E8=AF=AD?=
=?UTF-8?q?=E8=A8=80=E8=AE=BE=E7=BD=AE=E4=B8=BA=E8=8B=B1=E6=96=87=EF=BC=8C?=
=?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E5=A4=87=E7=94=A8=E8=AF=AD=E8=A8=80?=
=?UTF-8?q?=E4=B8=BA=E8=8B=B1=E6=96=87=E3=80=82=E5=90=8C=E6=97=B6=E6=B3=A8?=
=?UTF-8?q?=E9=87=8A=E6=8E=89=E4=BA=86=E8=AF=AD=E8=A8=80=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E4=BB=A5=E7=AE=80=E5=8C=96=E7=95=8C?=
=?UTF-8?q?=E9=9D=A2=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/index.js | 8 +++-----
src/views/businessintroduction/size1440/index.vue | 4 ++--
src/views/businessintroduction/size1920/index.vue | 4 ++--
src/views/companyprofil/size1440/index.vue | 4 ++--
src/views/companyprofil/size1920/index.vue | 4 ++--
src/views/companyprofildetail/size1440/index.vue | 4 ++--
src/views/companyprofildetail/size1920/index.vue | 4 ++--
src/views/home/size1440/index.vue | 4 ++--
src/views/home/size1920/index.vue | 4 ++--
src/views/investor/size1440/index.vue | 4 ++--
src/views/investor/size1920/index.vue | 4 ++--
src/views/investorhandbook/size1440/index.vue | 4 ++--
src/views/investorhandbook/size1920/index.vue | 4 ++--
13 files changed, 27 insertions(+), 29 deletions(-)
diff --git a/src/i18n/index.js b/src/i18n/index.js
index 9b7d364..cdfa7d9 100644
--- a/src/i18n/index.js
+++ b/src/i18n/index.js
@@ -26,14 +26,12 @@ function getBrowserLanguage() {
return 'en' // 默认中文,而不是英语
}
-// 获取存储的语言或浏览器语言
-// const savedLanguage = 'zh'
-// localStorage.setItem('language', 'zh')
-const savedLanguage = localStorage.getItem('language') || getBrowserLanguage()
+// 直接设为英文
+const savedLanguage = 'en'
const i18n = createI18n({
legacy: false, // 使用 Composition API
locale: savedLanguage,
- fallbackLocale: 'zh', // 备用语言
+ fallbackLocale: 'en', // 备用语言也设为英文
messages: {
en,
zh,
diff --git a/src/views/businessintroduction/size1440/index.vue b/src/views/businessintroduction/size1440/index.vue
index 5cfe605..b9431ad 100644
--- a/src/views/businessintroduction/size1440/index.vue
+++ b/src/views/businessintroduction/size1440/index.vue
@@ -160,13 +160,13 @@ onUnmounted(() => {
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/businessintroduction/size1920/index.vue b/src/views/businessintroduction/size1920/index.vue
index 5cfe605..b9431ad 100644
--- a/src/views/businessintroduction/size1920/index.vue
+++ b/src/views/businessintroduction/size1920/index.vue
@@ -160,13 +160,13 @@ onUnmounted(() => {
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/companyprofil/size1440/index.vue b/src/views/companyprofil/size1440/index.vue
index b6a2116..74f7ba5 100644
--- a/src/views/companyprofil/size1440/index.vue
+++ b/src/views/companyprofil/size1440/index.vue
@@ -316,13 +316,13 @@ onUnmounted(() => {
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/companyprofil/size1920/index.vue b/src/views/companyprofil/size1920/index.vue
index b6a2116..74f7ba5 100644
--- a/src/views/companyprofil/size1920/index.vue
+++ b/src/views/companyprofil/size1920/index.vue
@@ -316,13 +316,13 @@ onUnmounted(() => {
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/companyprofildetail/size1440/index.vue b/src/views/companyprofildetail/size1440/index.vue
index e8eb008..56258ed 100644
--- a/src/views/companyprofildetail/size1440/index.vue
+++ b/src/views/companyprofildetail/size1440/index.vue
@@ -43,13 +43,13 @@
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/companyprofildetail/size1920/index.vue b/src/views/companyprofildetail/size1920/index.vue
index d0464fb..39f856a 100644
--- a/src/views/companyprofildetail/size1920/index.vue
+++ b/src/views/companyprofildetail/size1920/index.vue
@@ -43,13 +43,13 @@
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/home/size1440/index.vue b/src/views/home/size1440/index.vue
index d7ae513..82265ce 100644
--- a/src/views/home/size1440/index.vue
+++ b/src/views/home/size1440/index.vue
@@ -444,13 +444,13 @@ watch(
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/home/size1920/index.vue b/src/views/home/size1920/index.vue
index 6aa8309..336fedc 100644
--- a/src/views/home/size1920/index.vue
+++ b/src/views/home/size1920/index.vue
@@ -434,13 +434,13 @@ watch(
{{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
▼
-
+ -->
diff --git a/src/views/investor/size1440/index.vue b/src/views/investor/size1440/index.vue
index fa1db2d..c4fbc1f 100644
--- a/src/views/investor/size1440/index.vue
+++ b/src/views/investor/size1440/index.vue
@@ -344,7 +344,7 @@ const state = reactive({
{{ t("home.nav.investor") }}
- ▼
-
+ -->
diff --git a/src/views/investor/size1920/index.vue b/src/views/investor/size1920/index.vue
index 0f7cc26..76aa1d0 100644
--- a/src/views/investor/size1920/index.vue
+++ b/src/views/investor/size1920/index.vue
@@ -344,7 +344,7 @@ const state = reactive({
{{ t("home.nav.investor") }}
- ▼
-
+ -->
diff --git a/src/views/investorhandbook/size1440/index.vue b/src/views/investorhandbook/size1440/index.vue
index 55918be..21f5bbb 100644
--- a/src/views/investorhandbook/size1440/index.vue
+++ b/src/views/investorhandbook/size1440/index.vue
@@ -42,7 +42,7 @@
{{ t("home.nav.investor") }}
- ▼
-
+ -->
diff --git a/src/views/investorhandbook/size1920/index.vue b/src/views/investorhandbook/size1920/index.vue
index 4fb0e46..a1f4894 100644
--- a/src/views/investorhandbook/size1920/index.vue
+++ b/src/views/investorhandbook/size1920/index.vue
@@ -42,7 +42,7 @@
{{ t("home.nav.investor") }}
- ▼
-
+ -->