From 2af5f043b60c1f7ac38ecccc8f5bf44743134325 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 12 十二月 2025 18:08:00 +0800
Subject: [PATCH] test
---
pages/my/language.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/pages/my/language.vue b/pages/my/language.vue
index d4dcf05..3a446c3 100644
--- a/pages/my/language.vue
+++ b/pages/my/language.vue
@@ -15,7 +15,7 @@
name: "涓枃绠�綋"
}, {
value: "zh-Hant",
- name: "涓枃绻佷綋"
+ name: " 涓枃绻侀珨"
}, {
value: "en",
name: "English"
@@ -32,8 +32,8 @@
// this.$i18n.locale =lang;
},
- translateSys(t) {
- if (typeof this.$t == "function") return this.$t(`sys.${t}`)
+ translate(t) {
+ if (typeof this.$t == "function") return this.$t(`page.${t}`)
else return t;
},
},
@@ -41,6 +41,9 @@
this.curLang = uni.getLocale()
this.oldLang = this.curLang
+ uni.setNavigationBarTitle({
+ title:this.translate('language')
+ })
},
onUnload() {
if (this.oldLang != this.curLang) {
--
Gitblit v1.9.1