fix: 接口测试-首页-场景用例数量统计-本周新增跳转错误

解决接口测试-首页-场景用例数量统计-本周新增跳转错误的错误
This commit is contained in:
song.tianyang 2021-01-27 16:15:32 +08:00
parent 9e5e2edb12
commit e8d2f8b92b
1 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,7 @@
renderComponent: true, renderComponent: true,
isHide: true, isHide: true,
activeName: 'default', activeName: 'default',
redirectFlag: 'none',
currentModule: null, currentModule: null,
moduleOptions: [], moduleOptions: [],
tabs: [], tabs: [],
@ -150,6 +151,15 @@
}, },
changeRedirectParam(redirectIDParam) { changeRedirectParam(redirectIDParam) {
this.redirectID = redirectIDParam; this.redirectID = redirectIDParam;
if(redirectIDParam!=null){
if(this.redirectFlag == "none"){
this.activeName = "default";
this.addListener();
this.redirectFlag = "redirected";
}
}else{
this.redirectFlag = "none";
}
}, },
addTab(tab) { addTab(tab) {
if (!getCurrentProjectID()) { if (!getCurrentProjectID()) {