1
PC-20250623MANY\Administrator
2025-08-17 536d4d648941b493cb12ab89b1adb53aab952c78
src/components/Language/index.vue
@@ -3,7 +3,7 @@
    <van-popup
      v-model="settingDialog"
      position="bottom"
      :style="{ height: '35%' }"
      :style="{ height: '35%', backgroundColor: '#444' }"
      @close="popClose"
    >
      <div
@@ -37,17 +37,21 @@
      actions: [
        {
          text: "English",
          lang: "en",
          lang: "en"
        },
        {
          text: "中文(繁体)",
          lang: "zh-Hant"
        },
        {
          text: "हिंदी",
          lang: "hi"
          text: "中文",
          lang: "zh-CN"
        },
      ],
        // {
        //   text: "हिंदी",
        //   lang: "hi"
        // }
      ]
    };
  },
  mounted() {
@@ -58,7 +62,7 @@
  },
  methods: {
    getText(val = "hi") {
      let arr = this.actions.filter((item) => item.lang === val);
      let arr = this.actions.filter(item => item.lang === val);
      return arr[0].text;
    },
    qkclick(e) {
@@ -69,8 +73,8 @@
    },
    popClose() {
      this.settingDialog = false;
    },
  },
    }
  }
};
</script>