From 49b8a7b39803973839cffccb8d19a66a5a299fcb Mon Sep 17 00:00:00 2001 From: q15971095971 <764419406@qq.com> Date: Thu, 12 Sep 2024 10:11:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=E7=A4=BA=E4=BE=8B-?= =?UTF-8?q?=E9=83=A8=E5=88=86=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=8F=98=E9=87=8F=E5=BD=A2=E5=BC=8F--bug=3D130469123?= =?UTF-8?q?=20(#3519)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bcs-services/bcs-bscp/ui/index.html | 2 ++ .../space/client/example/components/content/kv-example.vue | 2 +- .../client/example/components/content/node-mana-example.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bcs-services/bcs-bscp/ui/index.html b/bcs-services/bcs-bscp/ui/index.html index 91a22afac5..e0a4908f99 100644 --- a/bcs-services/bcs-bscp/ui/index.html +++ b/bcs-services/bcs-bscp/ui/index.html @@ -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 }}'); diff --git a/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/kv-example.vue b/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/kv-example.vue index 75c9187988..ce950a5ba3 100644 --- a/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/kv-example.vue +++ b/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/kv-example.vue @@ -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 diff --git a/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/node-mana-example.vue b/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/node-mana-example.vue index 632e920c34..08f6f2a8df 100644 --- a/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/node-mana-example.vue +++ b/bcs-services/bcs-bscp/ui/src/views/space/client/example/components/content/node-mana-example.vue @@ -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(