Skip to content

Commit

Permalink
fix: 配置示例-部分跳转链接改为变量形式--bug=130469123
Browse files Browse the repository at this point in the history
  • Loading branch information
q15971095971 committed Sep 11, 2024
1 parent fba47b1 commit f97065c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bcs-services/bcs-bscp/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
var GRPC_ADDR = '{{ .GRPC_ADDR }}';
var HTTP_ADDR = '{{ .HTTP_ADDR }}';
var BK_NODE_HOST = '{{ .BK_NODE_HOST }}';
var PYTHON_SDK_DEPENDENCY_DOC = '{{ .PYTHON_SDK_DEPENDENCY_DOC }}';
var CLIENT_CONFIGURATION_DOC = '{{ .CLIENT_CONFIGURATION_DOC }}';
window.BSCP_CONFIG = JSON.parse('{{ .BK_BSCP_CONFIG }}');
</script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
// 代码预览上方提示框
const kvConfig = computed(() => {
const url = 'https://bk.tencent.com/docs/markdown/ZH/BSCP/1.29/UserGuide/Function/python_sdk_dependency.md';
const url = (window as any).PYTHON_SDK_DEPENDENCY_DOC;
switch (props.kvName) {
case 'python':
// get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
const linkUrl = {
nodeManaUrl: `${(window as any).BK_NODE_HOST}/#/plugin-manager/rule`,
clientNode: 'https://bk.tencent.com/docs/markdown/ZH/BSCP/1.29/UserGuide/Function/client_configuration.md',
clientNode: (window as any).CLIENT_CONFIGURATION_DOC,
};
const keyValidateReg = new RegExp(
Expand Down

0 comments on commit f97065c

Please sign in to comment.