refactor: 用例通知跳转
This commit is contained in:
parent
35109cee86
commit
a3e5b567c2
|
@ -152,7 +152,7 @@ export function getUrl(d) {
|
|||
url += "/performance/test/edit/" + d.resourceId;
|
||||
break;
|
||||
case "TRACK_TEST_CASE_TASK" :
|
||||
url += "/track/case/all";
|
||||
url += "/track/case/all?resourceId=" + d.resourceId;
|
||||
break;
|
||||
case "TRACK_HOME_TASK" :
|
||||
url += "/track/home";
|
||||
|
|
|
@ -407,6 +407,15 @@ export default {
|
|||
if(!this.projectName || this.projectName === ""){
|
||||
this.getProjectName();
|
||||
}
|
||||
|
||||
// 通知过来的数据跳转到编辑
|
||||
if (this.$route.query.resourceId) {
|
||||
this.$get('test/case/get/' + this.$route.query.resourceId, response => {
|
||||
let testCase = response.data;
|
||||
testCase.label = 'redirect';
|
||||
this.$emit('testCaseEdit', testCase);
|
||||
});
|
||||
}
|
||||
},
|
||||
activated() {
|
||||
this.getTemplateField();
|
||||
|
|
Loading…
Reference in New Issue