diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue index 6fcba534c1..2ea8cfe9c5 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -646,6 +646,7 @@ export default { response.data.sourceId = resource.resourceId; response.data.type = resource.type; response.data.refType = resource.refType; + debugger this.clickCase(response.data) } else { this.$error("接口用例场景场景已经被删除"); diff --git a/frontend/src/business/components/api/automation/scenario/component/urlhelper.js b/frontend/src/business/components/api/automation/scenario/component/urlhelper.js index 647c05bd24..8098059c73 100644 --- a/frontend/src/business/components/api/automation/scenario/component/urlhelper.js +++ b/frontend/src/business/components/api/automation/scenario/component/urlhelper.js @@ -22,6 +22,46 @@ export function getUrl(d) { break; } break; + case "JDBCSampler": + switch (d.refType){ + case "API": + url += "/api/definition?resourceId=" + resourceId; + break; + case "CASE": + url += "/api/definition?caseId=" + d.id; + break; + } + break; + case "DebugSampler": + switch (d.refType){ + case "API": + url += "/api/definition?resourceId=" + resourceId; + break; + case "CASE": + url += "/api/definition?caseId=" + d.id; + break; + } + break; + case "DubboSampler": + switch (d.refType){ + case "API": + url += "/api/definition?resourceId=" + resourceId; + break; + case "CASE": + url += "/api/definition?caseId=" + d.id; + break; + } + break; + case "TCPSampler": + switch (d.refType){ + case "API": + url += "/api/definition?resourceId=" + resourceId; + break; + case "CASE": + url += "/api/definition?caseId=" + d.id; + break; + } + break; case "scenario": url += "/api/automation?resourceId=" + resourceId; break;