llj
2026-03-09 53d7d1ad2478945a093dc693b2e3ee4c963cfbce
pages/index/login.vue
@@ -19,7 +19,7 @@
                    </view> -->
               <view class="item">
                  <view class="left">{{ $t("login.Language") }}:</view>
                  <picker :range="['中文','English']" :value="Language" @change="onLanguageChangeHandler">
                  <picker :range="['中文','English','Thai']" :value="Language" @change="onLanguageChangeHandler">
                     <view class="right" style="display: flex;align-items: center;">
                        <input type="text" disabled v-model="Language" placeholder="请选择语言">
                        <uni-icons type="forward" color="#808080"
@@ -106,6 +106,7 @@
               "宁波惠康工业": 'http://172.16.72.30:6699/API/',
               "余姚兴达起动器": 'http://121.37.133.104/API/',
               "李林俊本地测试": 'http://localhost:8082/LuBaoAPI/',
               "李林俊本地测试2": 'http://192.168.2.91:8082/LuBaoAPI/',
               "杭州凯贝奈特": 'http://192.168.50.253:8080/API/',
               "杭州凯贝奈特外网": 'http://erp.hzcabinet.cn:9090/API/',
               "翁涛涛本地测试": 'http://localhost:81/API/',
@@ -161,9 +162,9 @@
      methods: {
         async ApplyLanguagePack(lang, forceUpdate = false) {
            // 读取语言包并加载
            // let languagePack = await getLanguagePackJson(lang)
            let languagePack = await getLanguagePackJson(lang)
            // this.$i18n.setLocaleMessage(lang, languagePack)
            this.$i18n.locale = lang
    //             this.$i18n.locale = lang
         },
         onLanguageChangeHandler(e) {
            //动态获取后端的语言包文件,并将语言包应用到全局
@@ -178,6 +179,11 @@
               this.ApplyLanguagePack("en")
               // this.$i18n.locale = 'en'
            }
            if (e.detail.value == 2) {
               this.Language = 'Thai'
               this.ApplyLanguagePack("Thai")
               // this.$i18n.locale = 'en'
            }
         },
         async InitOrgination() {
            console.log("初始化组织")