From 593361bd24e304b2991d3b9e05b1b2ab50857f88 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 24 Oct 2022 18:45:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98=E5=90=8E=E4=BB=8D=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=9C=AA=E4=BF=9D=E5=AD=98=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018723 --user=王孝刚 【接口测试】接口定义-编辑接口保存后仍提示未保存弹框(仅某些数据) https://www.tapd.cn/55049933/s/1275044 --- .../frontend/src/business/definition/components/ApiConfig.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/ApiConfig.vue b/api-test/frontend/src/business/definition/components/ApiConfig.vue index 26c4133371..f084ede8e6 100644 --- a/api-test/frontend/src/business/definition/components/ApiConfig.vue +++ b/api-test/frontend/src/business/definition/components/ApiConfig.vue @@ -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); },