fix(测试计划): 消息跳转至查看页面

--bug=1040450 --user=王旭 消息通知-消息列表中点击用例的名称,应该跳转到用例的查看页面 https://www.tapd.cn/55049933/s/1522005
This commit is contained in:
WangXu10 2024-05-28 13:55:01 +08:00 committed by Craftsman
parent 28db5873ad
commit 94bcdd9b08
1 changed files with 2 additions and 6 deletions

View File

@ -387,7 +387,7 @@
const resourceTypeRouteMap: Record<string, string> = { const resourceTypeRouteMap: Record<string, string> = {
[MessageResourceType.BUG_TASK]: BugManagementRouteEnum.BUG_MANAGEMENT_INDEX, [MessageResourceType.BUG_TASK]: BugManagementRouteEnum.BUG_MANAGEMENT_INDEX,
[MessageResourceType.BUG_SYNC_TASK]: BugManagementRouteEnum.BUG_MANAGEMENT_INDEX, [MessageResourceType.BUG_SYNC_TASK]: BugManagementRouteEnum.BUG_MANAGEMENT_INDEX,
[MessageResourceType.FUNCTIONAL_CASE_TASK]: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE_DETAIL, [MessageResourceType.FUNCTIONAL_CASE_TASK]: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE,
[MessageResourceType.CASE_REVIEW_TASK]: CaseManagementRouteEnum.CASE_MANAGEMENT_REVIEW_DETAIL, [MessageResourceType.CASE_REVIEW_TASK]: CaseManagementRouteEnum.CASE_MANAGEMENT_REVIEW_DETAIL,
[MessageResourceType.API_DEFINITION_TASK]: ApiTestRouteEnum.API_TEST_MANAGEMENT, [MessageResourceType.API_DEFINITION_TASK]: ApiTestRouteEnum.API_TEST_MANAGEMENT,
[MessageResourceType.API_SCENARIO_TASK]: ApiTestRouteEnum.API_TEST_SCENARIO, [MessageResourceType.API_SCENARIO_TASK]: ApiTestRouteEnum.API_TEST_SCENARIO,
@ -413,11 +413,7 @@
} }
const route = resourceTypeRouteMap[item.resourceType]; const route = resourceTypeRouteMap[item.resourceType];
if (item.resourceType === MessageResourceType.FUNCTIONAL_CASE_TASK) { openNewPage(route, routeQuery);
openNewPageWidthSingleParam(route, 'edit', routeQuery);
} else {
openNewPage(route, routeQuery);
}
} }
// //