fix(测试跟踪): 测试计划关联场景,第二次打开后没有数据

--bug=1026261 --user=陈建星 【测试跟踪】测试计划-第二次关联接口场景&UI测试用例-不显示数据 https://www.tapd.cn/55049933/s/1372463
This commit is contained in:
chenjianxing 2023-05-17 17:57:33 +08:00 committed by fit2-zhao
parent 3b5539ce2a
commit f44b4dca25
2 changed files with 12 additions and 8 deletions

View File

@ -77,10 +77,12 @@ export default {
methods: {
open() {
this.$refs.baseRelevance.open();
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
this.$refs.apiScenarioList.search();
}
this.$nextTick(() => {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
this.$refs.apiScenarioList.search();
}
});
},
setProject(projectId) {
this.projectId = projectId;

View File

@ -78,10 +78,12 @@ export default {
methods: {
open() {
this.$refs.baseRelevance.open();
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
this.$refs.apiScenarioList.search();
}
this.$nextTick(() => {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
this.$refs.apiScenarioList.search();
}
});
},
setProject(projectId) {
this.projectId = projectId;