fix(接口测试): 修复场景引用接口时出现的接口模块树的类型和接口数据不匹配的问题
--bug=1013312 --user=宋天阳 【接口测试】切换接口协议,场景导入接口列表没刷新 https://www.tapd.cn/55049933/s/1169897
This commit is contained in:
parent
3fbe57f0cf
commit
eabc1b9509
|
@ -11,6 +11,7 @@
|
|||
@protocolChange="handleProtocolChange"
|
||||
@refreshTable="refresh"
|
||||
@setModuleOptions="setModuleOptions"
|
||||
:is-relevance="true"
|
||||
:is-read-only="true"
|
||||
ref="nodeTree"/>
|
||||
</template>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue