From 943c41668cb2e09f9e7991e3277c61817a53cbb2 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 2 Jun 2021 11:12:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9D=9E=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E7=89=88=E7=94=A8=E6=88=B7ESB=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E6=B3=84=E9=9C=B2=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复非企业版用户ESB选项泄露的Bug --- .../definition/components/complete/EditCompleteTCPApi.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue index 1ee1726fbe..c9739abcf7 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue @@ -45,6 +45,7 @@ import MsTcpBasicApi from "./TCPBasicApi"; import MsBasisParameters from "../request/tcp/TcpBasisParameters"; import MsChangeHistory from "../../../../history/ChangeHistory"; +import {hasLicense} from "@/common/js/utils"; const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/); const esbDefinition = (requireComponent!=null&&requireComponent.keys().length) > 0 ? requireComponent("./apidefinition/EsbDefinition.vue") : {}; @@ -82,9 +83,12 @@ export default { } if (requireComponent != null && JSON.stringify(esbDefinition) != '{}'&& JSON.stringify(esbDefinitionResponse) != '{}') { this.showXpackCompnent = true; - if(this.methodTypes.length == 1){ - this.methodTypes.push("ESB"); + if(hasLicense()){ + if(this.methodTypes.length == 1){ + this.methodTypes.push("ESB"); + } } + } }, watch: {