| | |
| | | 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 { |
| | |
| | | ]; |
| | | // 标准版帮助菜单 |
| | | if (isStandard) { |
| | | menuList[3].children = [ |
| | | const menu0 = [ |
| | | { |
| | | title: this.$t("AnalyzerManual"), |
| | | method: "instructionBook", |
| | |
| | | title: this.$t("Update"), |
| | | method: "checkForUpdate", |
| | | }, |
| | | ]; |
| | | const menu1 = [ |
| | | { |
| | | title: this.$t("Support"), |
| | | method: "contact", |
| | |
| | | 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 |
| | |
| | | }); |
| | | }); |
| | | this.$message.error({ |
| | | message: this.$t('Thereexistsunverifieddata') + errStr, |
| | | message: this.$t("Thereexistsunverifieddata") + errStr, |
| | | duration: 5000, |
| | | }); |
| | | return false; |
| | |
| | | }, |
| | | fileParseOk() { |
| | | if (!this.fileUrl) { |
| | | this.$message.warning(this.$t('Pleaseselectthefiletoanalyze')); |
| | | this.$message.warning(this.$t("Pleaseselectthefiletoanalyze")); |
| | | return false; |
| | | } |
| | | // console.log(this.fileUrl); |