refactor(接口测试): 优化接口测试http协议前置操作过滤方法
This commit is contained in:
parent
f3ad52e430
commit
f4c7381896
|
@ -302,17 +302,22 @@ export default {
|
|||
hasLicense,
|
||||
tabClick() {
|
||||
this.$nextTick(() => {
|
||||
if (this.activeName === 'preOperate' && this.$refs.preStep) {
|
||||
this.$refs.preStep.filter();
|
||||
}
|
||||
if (this.activeName === 'postOperate' && this.$refs.postStep) {
|
||||
this.$refs.postStep.filter();
|
||||
}
|
||||
if (this.activeName === 'assertionsRule' && this.$refs.assertionsRule) {
|
||||
this.$refs.assertionsRule.filter();
|
||||
}
|
||||
setTimeout(() => {
|
||||
this.filter(this.activeName);
|
||||
});
|
||||
});
|
||||
},
|
||||
filter(activeName) {
|
||||
if (activeName === 'preOperate' && this.$refs.preStep) {
|
||||
this.$refs.preStep.filter();
|
||||
}
|
||||
if (activeName === 'postOperate' && this.$refs.postStep) {
|
||||
this.$refs.postStep.filter();
|
||||
}
|
||||
if (activeName === 'assertionsRule' && this.$refs.assertionsRule) {
|
||||
this.$refs.assertionsRule.filter();
|
||||
}
|
||||
},
|
||||
generate() {
|
||||
if (this.request.body && (this.request.body.jsonSchema || this.request.body.raw)) {
|
||||
if (!this.request.body.jsonSchema) {
|
||||
|
|
Loading…
Reference in New Issue