Skip to content

Commit

Permalink
fix: 区分导航和title字段
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 14802
  • Loading branch information
hyunfa authored and wyyalt committed Aug 9, 2024
1 parent be2316e commit d7247a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/common/navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!--icon-->
<div slot="side-header" class="nav-header" @click="$router.push('/')">
<img :src="appLogo" class="nodeman-logo-icon" />
<span class="title-desc">{{ config.i18n.name }}</span>
<span class="title-desc">{{ config.i18n.productName }}</span>
</div>
<!--顶部导航-->
<template #header>
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/store/modules/platform-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default class PlatformConfigStore extends VuexModule {
name: '节点管理', // 站点的名称,通常显示在页面左上角,也会出现在网页title中
nameEn: 'BK NodeMan', // 站点的名称-英文
appLogo: '', // 站点logo
productName: '', // 品牌名称
productNameEn: '', // 品牌英文名称
favicon: '/static/images/favicon.png', // 站点favicon
helperText: '',
helperTextEn: '',
Expand All @@ -35,6 +37,7 @@ export default class PlatformConfigStore extends VuexModule {
helperText: '...',
brandImg: '...',
brandName: '...',
productName: '...',
footerInfoHTML: '...',
},
};
Expand All @@ -56,10 +59,12 @@ export default class PlatformConfigStore extends VuexModule {

const defaults = {
name: '节点管理',
nameEn: 'BK NodeMan',
nameEn: 'NodeMan',
appLogo: logoSrc,
brandName: '蓝鲸智云',
brandNameEn: 'Tencent BlueKing',
productName: '蓝鲸节点管理',
productNameEn: 'BK NodeMan',
favicon: faviconSrc,
helperLink: window.PROJECT_CONFIG.BKAPP_NAV_HELPER_URL,
helperText: window.i18n.t('联系BK助手'),
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/types/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export interface IPlatformConfig {
nameEn: string, // 站点的名称-英文
appLogo: string, // 站点logo
favicon: string, // 站点favicon
productName: string, // 产品名称,展示在logo区域 1.0.5版本新增
productNameEn: string, // 产品名称-英文 1.0.5版本新增
helperText: string,
helperTextEn: string,
helperLink: string,
Expand All @@ -124,6 +126,7 @@ export interface IPlatformConfig {
name: string,
helperText: string,
brandImg: string,
productName: string,
brandName: string,
footerInfoHTML: string,
},
Expand Down

0 comments on commit d7247a3

Please sign in to comment.