From c0a40635e3f845967fbc98f5a4aa7dc7492d60a3 Mon Sep 17 00:00:00 2001 From: Oren Zhang Date: Wed, 19 Jun 2024 08:48:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=95=86=E6=A0=87&LOGO=E7=AD=89=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20#2712=20(#2716)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 支持全局配置商标&LOGO等信息 #2712 --- saas/backend/common/vue.py | 4 ++++ saas/config/default.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/saas/backend/common/vue.py b/saas/backend/common/vue.py index cab79384b..85f6aaea3 100644 --- a/saas/backend/common/vue.py +++ b/saas/backend/common/vue.py @@ -36,6 +36,10 @@ def get(self, request): # BK_DOMAIN "BK_DOMAIN": settings.BK_DOMAIN, "BK_DOCS_URL_PREFIX": settings.BK_DOCS_URL_PREFIX.rstrip("/"), + # BK Res + "BK_SHARED_RES_URL": settings.BK_SHARED_RES_URL.rstrip("/"), + # App Code + "BK_APP_CODE": settings.APP_CODE, } # 添加前端功能启用开关 diff --git a/saas/config/default.py b/saas/config/default.py index ddacefa59..adc603831 100644 --- a/saas/config/default.py +++ b/saas/config/default.py @@ -486,3 +486,7 @@ # 文档地址 BK_DOCS_URL_PREFIX = env.str("BK_DOCS_URL_PREFIX", default="https://bk.tencent.com/docs/") + + +# 全局配置地址 +BK_SHARED_RES_URL = env.str("BK_SHARED_RES_URL", default="")