fix(接口定义): 修复保存后仍提示未保存的缺陷

--bug=1018723 --user=王孝刚 【接口测试】接口定义-编辑接口保存后仍提示未保存弹框(仅某些数据)
https://www.tapd.cn/55049933/s/1275044
This commit is contained in:
wxg0103 2022-10-24 18:45:41 +08:00 committed by wxg0103
parent 81f0e7ed04
commit 593361bd24
1 changed files with 1 additions and 3 deletions

View File

@ -84,7 +84,7 @@ export default {
response: {
handler(newObj, oldObj) {
this.responseCount++;
if (this.responseCount > 1) {
if (this.responseCount > 3) {
store.apiStatus.set("responseChange", true);
store.apiMap.set(this.currentApi.id, store.apiStatus);
}
@ -324,9 +324,7 @@ export default {
this.responseCount = 0;
this.count = 0;
store.apiStatus.set("fromChange", false);
store.apiMap.set(this.currentApi.id, store.apiStatus);
store.apiStatus.set("requestChange", false);
store.apiMap.set(this.currentApi.id, store.apiStatus);
store.apiStatus.set("responseChange", false);
store.apiMap.set(this.currentApi.id, store.apiStatus);
},