From 9873db71650a412cab39a92e8a6aaad112e1aba4 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Thu, 2 Sep 2021 17:41:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E5=90=88=E5=B9=B6=E4=B8=A2=E5=A4=B1=E9=83=A8?= =?UTF-8?q?=E5=88=86=E8=A1=A5=E5=85=85=20(#5915)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: fit2-zhao --- .../scenario/component/ComponentConfig.vue | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue b/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue index a8121fa117..3f13b85e96 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ComponentConfig.vue @@ -23,11 +23,11 @@ export default { name: "ComponentConfig", components: { PluginComponent, - MsIfController , - MsTransactionController , - MsApiComponent , - MsLoopController , - MsApiScenarioComponent , + MsIfController, + MsTransactionController, + MsApiComponent, + MsLoopController, + MsApiScenarioComponent, JmeterElementComponent, MsConstantTimer: () => import("./ConstantTimer"), MsJsr233Processor: () => import("./Jsr233Processor"), @@ -114,21 +114,21 @@ export default { case "JmeterElement": name = "JmeterElementComponent"; break; - case "DubboSampler": - name = "MsApiComponent"; - break; - case "HTTPSamplerProxy": - name = "MsApiComponent"; - break; - case "JDBCSampler": - name = "MsApiComponent"; - break; - case "TCPSampler": - name = "MsApiComponent"; - break; - default: + case "DubboSampler": name = "MsApiComponent"; break; + case "HTTPSamplerProxy": + name = "MsApiComponent"; + break; + case "JDBCSampler": + name = "MsApiComponent"; + break; + case "TCPSampler": + name = "MsApiComponent"; + break; + default: + name = this.getComponent(ELEMENT_TYPE.Plugin); + break; } return name; } @@ -155,13 +155,13 @@ export default { this.titleColor = "#1483F6"; this.backgroundColor = "#F2ECF3"; return "MsJdbcProcessor"; - } - else if (type === ELEMENT_TYPE.Plugin) { - this.titleColor = "#1483F6"; - this.backgroundColor = "#F2ECF3"; - return "PluginComponent"; - } - else { + } + else if (type === ELEMENT_TYPE.Plugin) { + this.titleColor = "#1483F6"; + this.backgroundColor = "#F2ECF3"; + return "PluginComponent"; + } + else { this.title = this.$t('api_test.automation.customize_script'); this.titleColor = "#7B4D12"; this.backgroundColor = "#F1EEE9";