fix(接口测试): 修复场景引用接口时出现的接口模块树的类型和接口数据不匹配的问题

--bug=1013312 --user=宋天阳 【接口测试】切换接口协议,场景导入接口列表没刷新
https://www.tapd.cn/55049933/s/1169897
This commit is contained in:
song-tianyang 2022-05-31 14:53:52 +08:00 committed by TIanyang
parent 3fbe57f0cf
commit eabc1b9509
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@
@protocolChange="handleProtocolChange"
@refreshTable="refresh"
@setModuleOptions="setModuleOptions"
:is-relevance="true"
:is-read-only="true"
ref="nodeTree"/>
</template>

View File

@ -91,6 +91,7 @@ export default {
reviewId: String,
pageSource: String,
total: Number,
isRelevance: Boolean,
options: {
type: Array,
default() {
@ -150,7 +151,8 @@ export default {
this.condition.protocol = this.$route.params.type;
this.$emit('protocolChange', this.condition.protocol);
this.list();
}else {
}else if(!this.isRelevance){
//
this.$get('/api/module/getUserDefaultApiType/', response => {
this.condition.protocol = response.data;
this.$emit('protocolChange', this.condition.protocol);