Skip to content

Commit

Permalink
feat: 支持全局配置商标&LOGO等信息 #2712 (#2716)
Browse files Browse the repository at this point in the history
* feat: 支持全局配置商标&LOGO等信息 #2712
  • Loading branch information
OrenZhang authored Jun 19, 2024
1 parent bf9a29e commit c0a4063
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions saas/backend/common/vue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

# 添加前端功能启用开关
Expand Down
4 changes: 4 additions & 0 deletions saas/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="")

0 comments on commit c0a4063

Please sign in to comment.