From ed79a71af4734db398b1a1c9deb633a607850cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Fri, 9 Dec 2022 18:15:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Di18n=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=B8=8D=E5=85=A8=EF=BC=8C=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?logo=E5=AD=97=E6=AE=B5=E6=9C=AA=E5=A3=B0=E6=98=8E=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84warning=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/Header.vue | 11 ++++++----- src/i18n/index.js | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index 0b68c0dc..8fe3ad9f 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -301,7 +301,8 @@ export default { curPageNum: 1, curTabState: curTabState, urlChangeParams: {}, - wholeScreenRouterMapping + wholeScreenRouterMapping, + logo: '' // 此处logo的url未被初始化,可能后续会改动 } }, computed: { @@ -435,7 +436,7 @@ export default { const tableType = this.$route.params ? this.$route.params.typeName : 'networkOverview' const curTableInCode = networkTable[tableType] ? networkTable[tableType] : networkTable.networkOverview if (curTableInCode && curTableInCode.tabList) { - curTab = curTableInCode.tabList.find(item => item.label == label) + curTab = curTableInCode.tabList.find(item => item.label === label) } return curTab }, @@ -448,7 +449,7 @@ export default { const tableType = this.$route.params ? this.$route.params.typeName : 'networkOverview' const curTableInCode = networkTable[tableType] ? networkTable[tableType] : networkTable.networkOverview if (curTableInCode && curTableInCode.tabList) { - const curTab = curTableInCode.tabList.find(item => item.label == columnName) + const curTab = curTableInCode.tabList.find(item => item.label === columnName) if (curTab) { type = curTab.prop } @@ -571,7 +572,7 @@ export default { } this.urlChangeParams = {} }, - async handleCurDrilldownTableConfig (thirdMenu, fourthMenu) { + async handleCurDrilldownTableConfig (thirdMenu) { // const userId = localStorage.getItem(storageKey.userId) const tableType = this.$route.params ? this.$route.params.typeName : 'networkOverview' const drillDownTableConfigs = await combinDrilldownTableWithUserConfig() @@ -668,7 +669,7 @@ export default { t: +new Date() } }) - } else if (opeType != 4) { + } else if (opeType !== 4) { this.$router.push({ query: { ...this.$route.query, diff --git a/src/i18n/index.js b/src/i18n/index.js index 63691555..7ba85d34 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -1,4 +1,4 @@ -import { createI18n } from 'vue-i18n' +import { createI18n } from 'vue-i18n/index' import { storageKey } from '@/utils/constants' import { getI18n } from '@/utils/api' import store from '@/store'