cuiqian2004
4 天以前 2af5f043b60c1f7ac38ecccc8f5bf44743134325
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) {