diff --git a/saas/backend/common/vue.py b/saas/backend/common/vue.py index e236d33a0..be9d5357c 100644 --- a/saas/backend/common/vue.py +++ b/saas/backend/common/vue.py @@ -35,6 +35,7 @@ def get(self, request): "BK_ITSM_APP_URL": settings.BK_ITSM_APP_URL.rstrip("/"), # BK_DOMAIN "BK_DOMAIN": settings.BK_DOMAIN, + "BK_DOCS_URL_PREFIX": settings.BK_DOCS_URL_PREFIX, } # 添加前端功能启用开关 diff --git a/saas/config/default.py b/saas/config/default.py index f714d5810..01144de0b 100644 --- a/saas/config/default.py +++ b/saas/config/default.py @@ -462,3 +462,7 @@ # BCS初始化ROLE网关api配置 BK_BCS_APIGW_URL = env.str("BK_BCS_APIGW_URL", default="") + + +# 文档地址 +BK_DOCS_URL_PREFIX = env.str("BK_DOCS_URL_PREFIX", default="https://bk.tentcent.com/docs/")