fix(接口测试): 修复场景导入接口列表频繁调接口的缺陷

--bug=1026866 --user=王孝刚 【接口测试】场景详情-导入接口报错且前端频繁调用分页查询接口
https://www.tapd.cn/55049933/s/1380411
This commit is contained in:
wxg0103 2023-06-12 11:52:46 +08:00 committed by fit2-zhao
parent 7346cdace5
commit a638db3634
2 changed files with 6 additions and 3 deletions

View File

@ -1970,7 +1970,7 @@ export default {
if (res.data) {
this.projectIds = new Set(res.data.projectIds);
this.projectIds.add(this.projectId);
this.isFullUrl = res.data.fullUrl;
this.isFullUrl = res.data.data.fullUrl;
}
resolve();
});

View File

@ -60,7 +60,7 @@
<!-- 显示数量 -->
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px" />
<el-button size="mini" icon="el-icon-refresh" @click="refresh" />
<el-button size="mini" icon="el-icon-refresh" @click="refreshData" />
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
{{ $t('commons.copy') }}
</el-button>
@ -236,13 +236,16 @@ export default {
this.moduleOptions = data;
},
refresh() {
this.$refs.nodeTree.refresh(this.projectId);
if (this.isApiListEnable) {
this.$refs.apiList.initTable(this.projectId);
} else {
this.$refs.apiCaseList.initTable(this.projectId);
}
},
refreshData() {
this.$refs.nodeTree.refresh(this.projectId);
this.refresh();
},
setProject(projectId) {
this.projectId = projectId;
},