he wei
2024-01-15 d592480beb70716a59b6ec5a00c73e92ff6ea986
src/components/menuList.vue
@@ -460,12 +460,12 @@
import { versionBig } from "@/assets/js/util";
import config from "@/assets/js/config.js";
import i18n from './i18n/menuList';
import { createI18nOption } from '@/assets/js/tools/i18n';
import i18n from "./i18n/menuList";
import { createI18nOption } from "@/assets/js/tools/i18n";
const i18nMixin = createI18nOption(i18n);
const { isStandard } = config;
const { isStandard, lang } = config;
const O_rules = CONST.rules;
export default {
@@ -550,7 +550,7 @@
    ];
    // 标准版帮助菜单
    if (isStandard) {
      menuList[3].children = [
      const menu0 = [
        {
          title: this.$t("AnalyzerManual"),
          method: "instructionBook",
@@ -567,6 +567,8 @@
          title: this.$t("Update"),
          method: "checkForUpdate",
        },
      ];
      const menu1 = [
        {
          title: this.$t("Support"),
          method: "contact",
@@ -576,6 +578,16 @@
          method: "others",
        },
      ];
      if (lang == "US") {
        menuList[3].children = [...menu1];
      } else {
        menuList[3].children = [...menu0, ...menu1];
      }
    } else {
      if (lang == "US") {
        menuList.pop();
      }
    }
    const p_params = {
      // chainResChange
@@ -1172,7 +1184,7 @@
            });
          });
          this.$message.error({
            message: this.$t('Thereexistsunverifieddata') + errStr,
            message: this.$t("Thereexistsunverifieddata") + errStr,
            duration: 5000,
          });
          return false;
@@ -1181,7 +1193,7 @@
    },
    fileParseOk() {
      if (!this.fileUrl) {
        this.$message.warning(this.$t('Pleaseselectthefiletoanalyze'));
        this.$message.warning(this.$t("Pleaseselectthefiletoanalyze"));
        return false;
      }
      // console.log(this.fileUrl);