Skip to content

Commit

Permalink
Merge pull request #2773 from lhzzforever/dev/develop_ci
Browse files Browse the repository at this point in the history
feature: 升级全局配置plugin,区分title和productName之间的文本差异
  • Loading branch information
ielgnaw authored Aug 12, 2024
2 parents 6f35d30 + f030b14 commit ec41fa7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/components/header-nav/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/store/modules/global-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit ec41fa7

Please sign in to comment.