From 42a4f54bda93c04894c686f4e6dc05616dc64e4e Mon Sep 17 00:00:00 2001
From: hLinx <327159425@qq.com>
Date: Tue, 13 Aug 2024 17:26:12 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=A8=E5=B1=80=E9=85=8D=E7=BD=AEtit?=
=?UTF-8?q?le/footer/logo/favicon/=E4=BA=A7=E5=93=81=E5=90=8D=E7=A7=B0=20#?=
=?UTF-8?q?3073=20#=20Reviewed,=20transaction=20id:=2015166?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/frontend/package.json | 2 +-
src/frontend/src/App.vue | 8 ++++----
src/frontend/src/layout-new.vue | 4 ++--
src/frontend/src/store/modules/platform-config.js | 6 ++++--
4 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/frontend/package.json b/src/frontend/package.json
index 7be6a55dda..68aa36e96e 100644
--- a/src/frontend/package.json
+++ b/src/frontend/package.json
@@ -18,7 +18,7 @@
"@blueking/login-modal": "1.0.4",
"@blueking/notice-component-vue2": "2.0.0-beta.2",
"@blueking/paas-login": "0.0.11",
- "@blueking/platform-config": "1.0.2",
+ "@blueking/platform-config": "1.0.5",
"@blueking/sub-saas": "0.0.0-beta.6",
"@blueking/user-selector": "1.0.12",
"@vue/babel-preset-jsx": "1.4.0",
diff --git a/src/frontend/src/App.vue b/src/frontend/src/App.vue
index 737d886c10..42247fff59 100644
--- a/src/frontend/src/App.vue
+++ b/src/frontend/src/App.vue
@@ -205,11 +205,11 @@
this.relatedSystemUrls = Object.freeze(data);
return getPlatformConfig(data.BK_SHARED_RES_BASE_JS_URL, {
- name: '蓝鲸作业平台',
- nameEn: 'BlueKing JOB',
+ name: '作业平台',
+ nameEn: 'JOB',
appLogo: '/static/images/logo.png',
- brandName: '腾讯蓝鲸智云',
- brandNameEn: 'BlueKing',
+ brandName: '蓝鲸智云',
+ brandNameEn: 'Tencent BlueKing',
favicon: '/static/images/favicon.icon',
version: process.env.JOB_VERSION,
}).then((data) => {
diff --git a/src/frontend/src/layout-new.vue b/src/frontend/src/layout-new.vue
index 2176c47111..11aff4ae1a 100644
--- a/src/frontend/src/layout-new.vue
+++ b/src/frontend/src/layout-new.vue
@@ -43,7 +43,7 @@
- {{ siteName }}
+ {{ productName }}
@@ -324,7 +324,7 @@
const noticApiUrl = `${window.PROJECT_CONFIG.AJAX_URL_PREFIX}/job-manage/web/notice/announcement/currentAnnouncements`;
- const siteName = computed(() => (locale === 'en-US' ? store.state.platformConfig.nameEn : store.state.platformConfig.name));
+ const productName = computed(() => (locale === 'en-US' ? store.state.platformConfig.productNameEn : store.state.platformConfig.productName));
watch(route, (currentRoute) => {
routerTitle.value = (currentRoute.meta.title || currentRoute.meta.pageTitle);
diff --git a/src/frontend/src/store/modules/platform-config.js b/src/frontend/src/store/modules/platform-config.js
index fe14b948da..ef29bf9bb9 100644
--- a/src/frontend/src/store/modules/platform-config.js
+++ b/src/frontend/src/store/modules/platform-config.js
@@ -27,10 +27,12 @@ export default {
namespaced: true,
state: {
bkAppCode: '', // appcode
- name: '蓝鲸作业平台', // 站点的名称,通常显示在页面左上角,也会出现在网页title中
- nameEn: 'BlueKing JOB', // 站点的名称-英文
+ name: '作业平台', // 站点的名称,通常显示在页面左上角,也会出现在网页title中
+ nameEn: 'JOB', // 站点的名称-英文
appLogo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/wIAAgMBAAirr3kAAAAASUVORK5CYII=', // 站点logo
favicon: '/static/images/favicon.icon', // 站点favicon
+ productName: '作业平台', // 产品名称,展示在logo区域 1.0.5版本新增
+ productNameEn: 'JOB',
helperText: '',
helperTextEn: '',
helperLink: '',