fix(接口测试): 修复任务中心场景报告跳转错误问题

--bug=1018298 --user=赵勇 【接口测试】接口自动化批量执行,任务中心点击详情名称进行跳转跳转到错误位置(系统设置) https://www.tapd.cn/55049933/s/1274595
This commit is contained in:
fit2-zhao 2022-10-24 16:51:20 +08:00 committed by f2c-ci-robot[bot]
parent b9bde97a5d
commit 8ca86c2398
1 changed files with 6 additions and 1 deletions

View File

@ -154,7 +154,12 @@ export default {
let uuid = getUUID().substring(1, 5); let uuid = getUUID().substring(1, 5);
let projectId = getCurrentProjectID(); let projectId = getCurrentProjectID();
let workspaceId = getCurrentWorkspaceId(); let workspaceId = getCurrentWorkspaceId();
let path = `/api/automation/?redirectID=${uuid}&dataType=scenario&projectId=${projectId}&workspaceId=${workspaceId}&resourceId=${this.scenarioId}`; let prefix = "/#";
if (this.$route && this.$route.path.startsWith('/api/automation/report')
&& this.$route.query && this.$route.query.list) {
prefix = ""
}
let path = `${prefix}/api/automation/?redirectID=${uuid}&dataType=scenario&projectId=${projectId}&workspaceId=${workspaceId}&resourceId=${this.scenarioId}`;
let data = this.$router.resolve({ let data = this.$router.resolve({
path: path path: path
}); });