From 0b9fc2ef3dbf484fe438baeb5fbc0ce318a11d54 Mon Sep 17 00:00:00 2001 From: baiqi Date: Tue, 17 Dec 2024 15:44:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scenario/components/common/customApiDrawer.vue | 9 ++++++++- .../scenario/components/common/customCaseDrawer.vue | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue b/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue index 69831e6bc1..a7a51696b4 100644 --- a/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue +++ b/frontend/src/views/api-test/scenario/components/common/customApiDrawer.vue @@ -7,7 +7,7 @@ no-content-padding :show-continue="true" :footer="requestVModel.isNew === true" - :ok-disabled="requestVModel.executeLoading || (isHttpProtocol && !requestVModel.url)" + :ok-disabled="requestVModel.executeLoading || (isHttpProtocol && !requestVModel.url) || loading" :handle-before-cancel="handleBeforeCancel" show-full-screen unmount-on-close @@ -1350,6 +1350,13 @@ } ); + watch( + () => appStore.loading, + (val) => { + loading.value = val; + } + ); + watch( () => visible.value, async (val) => { diff --git a/frontend/src/views/api-test/scenario/components/common/customCaseDrawer.vue b/frontend/src/views/api-test/scenario/components/common/customCaseDrawer.vue index a609032ed6..0da2ae6970 100644 --- a/frontend/src/views/api-test/scenario/components/common/customCaseDrawer.vue +++ b/frontend/src/views/api-test/scenario/components/common/customCaseDrawer.vue @@ -1084,6 +1084,13 @@ } ); + watch( + () => appStore.loading, + (val) => { + loading.value = val; + } + ); + watch( () => visible.value, async (val) => {