fix(接口测试): 接口定义中监控数据变化

This commit is contained in:
wxg0103 2021-11-29 18:04:47 +08:00 committed by 刘瑞斌
parent 6e78067cff
commit e97de5d7b9
1 changed files with 10 additions and 9 deletions

View File

@ -73,17 +73,18 @@ export default {
}, },
deep: true deep: true
}, },
}, response: {
response: { handler(newObj, oldObj) {
handler(newObj, oldObj) { this.responseCount++;
this.responseCount++; if (this.responseCount > 1) {
if (this.responseCount > 1) { this.$store.state.apiStatus.set("responseChange", true);
this.$store.state.apiStatus.set("responseChange", true); this.$store.state.apiMap.set(this.currentApi.id, this.$store.state.apiStatus);
this.$store.state.apiMap.set(this.currentApi.id, this.$store.state.apiStatus); }
} },
deep: true
}, },
deep: true
}, },
created() { created() {
this.getMaintainerOptions(); this.getMaintainerOptions();
switch (this.currentProtocol) { switch (this.currentProtocol) {