fix(接口测试): 过去7天有更新的接口跳转问题

--user=郭雨琦
--bug=1014026
接口首页,过去7天有更新的接口,点击ID/名称跳转后会提示场景已删除
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014026
This commit is contained in:
guoyuqi 2022-06-13 19:53:12 +08:00 committed by f2c-ci-robot[bot]
parent ffa0f22166
commit ea6e5cd5a8
2 changed files with 9 additions and 9 deletions

View File

@ -723,9 +723,9 @@ export default {
}
this.$nextTick(() => {
this.apiDefaultTab = newTabName;
if(!addNewTab && action === "SCHEDULE") {
if (!addNewTab && action === "SCHEDULE") {
//tab
if(this.$refs.apiSchedules){
if (this.$refs.apiSchedules) {
this.$refs.apiSchedules.searchTaskList();
}
}

View File

@ -202,7 +202,7 @@ export default {
let uuid = getUUID();
switch (pageType) {
case "api":
this.$router.push('/api/definition/' + uuid + '?resourceId=' + param)
this.$emit('redirectPage', 'api', 'api', 'edit:' + param);
break;
case "apiCase":
this.$emit('redirectPage', 'api', 'apiTestCase', 'singleList:' + param);
@ -215,13 +215,13 @@ export default {
}
},
},
created() {
this.search();
},
activated() {
this.search();
}
created() {
this.search();
},
activated() {
this.search();
}
}
</script>
<style scoped>