From 419ccfc260fb8ba9aeb74462aefff412f68613f3 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 25 Nov 2021 15:15:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E5=BC=95=E7=94=A8=E5=9C=BA=E6=99=AFid=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 引用场景id不显示 --- .../scenario/component/ApiScenarioComponent.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue index 3c088bb9f8..7d7a798d69 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue @@ -133,6 +133,16 @@ export default { } }) } + if(this.scenario.id && this.scenario.referenced === 'Copy' && !this.scenario.loaded){ + this.result = this.$get("/api/automation/getApiScenario/" + this.scenario.id, response => { + if (response.data) { + if(response.data.num){ + this.scenario.num = response.data.num; + this.isShowNum = true; + } + } + }) + } }, components: {ApiBaseComponent, MsSqlBasisParameters, MsTcpBasisParameters, MsDubboBasisParameters, MsApiRequestForm}, data() {