fix(接口定义): 修复保存后仍提示未保存的缺陷
--bug=1018723 --user=王孝刚 【接口测试】接口定义-编辑接口保存后仍提示未保存弹框(仅某些数据) https://www.tapd.cn/55049933/s/1275044
This commit is contained in:
parent
c95b8b3746
commit
1bd1a9ecf9
|
@ -84,7 +84,7 @@ export default {
|
||||||
response: {
|
response: {
|
||||||
handler(newObj, oldObj) {
|
handler(newObj, oldObj) {
|
||||||
this.responseCount++;
|
this.responseCount++;
|
||||||
if (this.responseCount > 1) {
|
if (this.responseCount > 3) {
|
||||||
store.apiStatus.set("responseChange", true);
|
store.apiStatus.set("responseChange", true);
|
||||||
store.apiMap.set(this.currentApi.id, store.apiStatus);
|
store.apiMap.set(this.currentApi.id, store.apiStatus);
|
||||||
}
|
}
|
||||||
|
@ -324,9 +324,7 @@ export default {
|
||||||
this.responseCount = 0;
|
this.responseCount = 0;
|
||||||
this.count = 0;
|
this.count = 0;
|
||||||
store.apiStatus.set("fromChange", false);
|
store.apiStatus.set("fromChange", false);
|
||||||
store.apiMap.set(this.currentApi.id, store.apiStatus);
|
|
||||||
store.apiStatus.set("requestChange", false);
|
store.apiStatus.set("requestChange", false);
|
||||||
store.apiMap.set(this.currentApi.id, store.apiStatus);
|
|
||||||
store.apiStatus.set("responseChange", false);
|
store.apiStatus.set("responseChange", false);
|
||||||
store.apiMap.set(this.currentApi.id, store.apiStatus);
|
store.apiMap.set(this.currentApi.id, store.apiStatus);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue