From 3fed67e9c6be0aeada9b7b37bace50fb556f1f78 Mon Sep 17 00:00:00 2001 From: hyunfa <1598047833@qq.com> Date: Tue, 2 Jul 2024 22:04:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B9=B3=E5=8F=B0=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20#=20Reviewed,=20transaction=20id:=2011969?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index-dev.html | 4 +- frontend/index.html | 2 + frontend/package.json | 1 + frontend/src/App.vue | 11 ++- frontend/src/components/common/footer.vue | 19 ++--- frontend/src/components/common/navigation.vue | 13 +++- frontend/src/store/index.ts | 4 ++ frontend/src/store/modules/platform-config.ts | 69 +++++++++++++++++++ frontend/src/types/config/config.ts | 34 +++++++++ 9 files changed, 142 insertions(+), 15 deletions(-) create mode 100644 frontend/src/store/modules/platform-config.ts diff --git a/frontend/index-dev.html b/frontend/index-dev.html index 66a86dd35..7e97071b3 100644 --- a/frontend/index-dev.html +++ b/frontend/index-dev.html @@ -22,7 +22,7 @@ const GLOBAL_TASK_CONFIG_PERMISSION = 'True' const GLOBAL_SETTING_PERMISSION = 'True' const USE_IAM = 'True' - const APP_CODE = 'bk_nodeman' + const APP_CODE = 'bkc-nodeman' const WXWORK_UIN = '' const DESTOP_URL = '' const BKAPP_NODEMAN_CALLBACK_URL = '' @@ -42,6 +42,7 @@ const BKAPP_NAV_HELPER_URL = '' const ENABLE_AP_VERSION_MUTEX = 'False' const ENABLE_NOTICE_CENTER = 'False' + const BKPAAS_SHARED_RES_URL = '' return { SITE_URL: SITE_URL, @@ -79,6 +80,7 @@ BKAPP_NAV_HELPER_URL, ENABLE_AP_VERSION_MUTEX, ENABLE_NOTICE_CENTER, + BKPAAS_SHARED_RES_URL, } })() window.$DHCP = window.PROJECT_CONFIG.BKAPP_ENABLE_DHCP === 'True' diff --git a/frontend/index.html b/frontend/index.html index 03db87b56..d8bde620d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -46,6 +46,7 @@ const BKAPP_NAV_OPEN_SOURCE_URL = '{{ BKAPP_NAV_OPEN_SOURCE_URL }}' const ENABLE_AP_VERSION_MUTEX = '{{ ENABLE_AP_VERSION_MUTEX }}' const ENABLE_NOTICE_CENTER = '{{ ENABLE_NOTICE_CENTER }}' + const BKPAAS_SHARED_RES_URL = '{{ BKPAAS_SHARED_RES_URL }}' return { APP_CODE, @@ -65,6 +66,7 @@ DESTOP_URL, ENABLE_AP_VERSION_MUTEX, ENABLE_NOTICE_CENTER, + BKPAAS_SHARED_RES_URL, GLOBAL_TASK_CONFIG_PERMISSION, GLOBAL_SETTING_PERMISSION, GSE_LISTEN_PORT, diff --git a/frontend/package.json b/frontend/package.json index 30b75c744..ed25af804 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -47,6 +47,7 @@ "@blueking/login-modal": "^1.0.1", "@blueking/notice-component-vue2": "~2.0.1", "@blueking/paas-login": "0.0.9", + "@blueking/platform-config": "^1.0.3", "@icon-cool/bk-icon-node-manager": "latest", "axios": "0.26.1", "bk-magic-vue": "2.5.6", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index c4a8236ef..e5875233e 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -14,7 +14,7 @@