From 05fb50f2b377f7c2647d8e841fa164b026b32d38 Mon Sep 17 00:00:00 2001 From: lhzzforever Date: Mon, 12 Aug 2024 16:18:49 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E5=8D=87=E7=BA=A7=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=89=88=E6=9C=AC=EF=BC=8C=E5=8C=BA=E5=88=86?= =?UTF-8?q?title=E5=92=8CproductName=E4=B9=8B=E9=97=B4=E7=9A=84=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=B7=AE=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/src/components/header-nav/index.vue | 6 +----- frontend/src/store/modules/global-config.js | 3 +++ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index a5de71d46..0c5855a7b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -90,7 +90,7 @@ "@blueking/functional-dependency": "0.0.1-beta.12", "@blueking/login-modal": "^1.0.0", "@blueking/notice-component-vue2": "^2.0.3", - "@blueking/platform-config": "^1.0.2", + "@blueking/platform-config": "^1.0.5", "@blueking/sub-saas": "0.0.0-beta.7", "@blueking/user-selector": "^1.0.14", "@commitlint/cli": "~13.1.0", diff --git a/frontend/src/components/header-nav/index.vue b/frontend/src/components/header-nav/index.vue index 970279999..445307f0f 100644 --- a/frontend/src/components/header-nav/index.vue +++ b/frontend/src/components/header-nav/index.vue @@ -311,11 +311,7 @@ }, appName () { // 如果未获取到配置,使用默认title - if (this.globalConfig) { - const { name, nameEn } = this.globalConfig; - return this.curLanguageIsCn ? name : nameEn; - } - return this.$t('m.nav["蓝鲸权限中心"]'); + return this.globalConfig && this.globalConfig.i18n ? this.globalConfig.i18n.productName : this.$t('m.nav["蓝鲸权限中心"]'); }, appLogo () { // 如果未获取到配置,使用默认logo diff --git a/frontend/src/store/modules/global-config.js b/frontend/src/store/modules/global-config.js index 1309ae337..5b66cf419 100644 --- a/frontend/src/store/modules/global-config.js +++ b/frontend/src/store/modules/global-config.js @@ -33,8 +33,11 @@ export default { name: '', // 网站名 separator: '|' // 网站名称路由分隔符 }, + i18n: {}, name: '权限中心', nameEn: 'IAM', + productName: '权限中心', + productNameEn: 'BK IAM', brandName: '蓝鲸智云', brandNameEn: 'Tencent BlueKing', appLogo: require('@/images/logo.svg'),