fix(消息通知): 修复jenkins通知跳转

--bug=1008368 --user=刘瑞斌 【消息通知】jenkins执行接口用例的消息通知,跳转错误 https://www.tapd.cn/55049933/s/1075408
This commit is contained in:
CaptainB 2021-11-26 10:33:52 +08:00 committed by 刘瑞斌
parent 046dfc3dab
commit 7769e696c4
1 changed files with 12 additions and 1 deletions

View File

@ -124,7 +124,18 @@ export function getUrl(d) {
let url = "/#";
switch (d.resourceType) {
case "JENKINS_TASK" :
// jenkins 跳转需要特殊处理
if (d.content.indexOf("接口用例") > -1) {
url += "/api/definition?caseId=" + d.resourceId;
} else if (d.content.indexOf("性能测试") > -1) {
url += "/performance/report/view/" + d.resourceId;
} else if (d.content.indexOf("接口测试") > -1) {
url += "/api/automation/report/view/" + d.resourceId;
} else if (d.content.indexOf("测试计划") > -1) {
url += "/track/plan/view/" + d.resourceId;
} else {
url += "/track/plan/all";
}
break;
case "TEST_PLAN_TASK" :
url += "/track/plan/view/" + d.resourceId;