diff --git a/src/dashboard-front/.bk.production.env b/src/dashboard-front/.bk.production.env index 4827837c0..ad55842dc 100644 --- a/src/dashboard-front/.bk.production.env +++ b/src/dashboard-front/.bk.production.env @@ -19,3 +19,4 @@ BK_DASHBOARD_FE_URL = '\$BK_DASHBOARD_FE_URL' BK_DASHBOARD_URL = '\$BK_DASHBOARD_URL' BK_DASHBOARD_CSRF_COOKIE_NAME = '\$BK_DASHBOARD_CSRF_COOKIE_NAME' BK_SHARED_RES_URL = '\$BK_SHARED_RES_URL' +BK_APP_CODE = '\$BK_APP_CODE' diff --git a/src/dashboard-front/src/app.vue b/src/dashboard-front/src/app.vue index d5a098b31..8077cfcfd 100644 --- a/src/dashboard-front/src/app.vue +++ b/src/dashboard-front/src/app.vue @@ -112,7 +112,7 @@ const getWebsiteConfig = async () => { if (bkSharedResUrl) { const url = bkSharedResUrl?.endsWith('/') ? bkSharedResUrl : `${bkSharedResUrl}/`; - websiteConfig.value = await getPlatformConfig(`${url}bk_cmdb/base.js`, constantConfig.SITE_CONFIG); + websiteConfig.value = await getPlatformConfig(`${url}${window.BK_APP_CODE || 'bk_apigateway'}/base.js`, constantConfig.SITE_CONFIG); } else { websiteConfig.value = await getPlatformConfig(constantConfig.SITE_CONFIG); } diff --git a/src/dashboard-front/src/components/member-select/index.tsx b/src/dashboard-front/src/components/member-select/index.tsx index c455d4db0..68cc6500d 100644 --- a/src/dashboard-front/src/components/member-select/index.tsx +++ b/src/dashboard-front/src/components/member-select/index.tsx @@ -99,7 +99,7 @@ export default defineComponent({ }); } else { // isLoading.value = true; - staffStore.fetchStaffs(); + staffStore.fetchStaffs(props.modelValue.join(',')); } }, { immediate: true, deep: true }, diff --git a/src/dashboard-front/types/global.d.ts b/src/dashboard-front/types/global.d.ts index 04a2e32b0..c50e2d8d1 100644 --- a/src/dashboard-front/types/global.d.ts +++ b/src/dashboard-front/types/global.d.ts @@ -15,6 +15,7 @@ declare interface Window { CREATE_CHAT_API: string SEND_CHAT_API: string BK_SHARED_RES_URL: string + BK_APP_CODE: string } declare module "*.svg" {