From b956f81171c804e86fb034c5cd30113919b1e94e Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Wed, 22 Feb 2023 18:55:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20WAF=20=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=90=AF=E7=94=A8=E4=B8=80=E7=9B=B4=20Loading?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/website/website/config/safety/ccdeny/index.vue | 2 +- .../website/website/config/safety/file-block-list/index.vue | 2 +- .../views/website/website/config/safety/simple-list/index.vue | 2 +- .../views/website/website/config/safety/value-list/index.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/website/website/config/safety/ccdeny/index.vue b/frontend/src/views/website/website/config/safety/ccdeny/index.vue index f07810344..97597038d 100644 --- a/frontend/src/views/website/website/config/safety/ccdeny/index.vue +++ b/frontend/src/views/website/website/config/safety/ccdeny/index.vue @@ -106,8 +106,8 @@ const updateEnable = async (enable: boolean) => { await UpdateWafEnable(enableUpdate.value); } catch (error) { form.enable = !enable; - loading.value = false; } + loading.value = false; }; const submit = async (formEl: FormInstance | undefined) => { diff --git a/frontend/src/views/website/website/config/safety/file-block-list/index.vue b/frontend/src/views/website/website/config/safety/file-block-list/index.vue index fe07fe504..3bef3a901 100644 --- a/frontend/src/views/website/website/config/safety/file-block-list/index.vue +++ b/frontend/src/views/website/website/config/safety/file-block-list/index.vue @@ -128,8 +128,8 @@ const updateEnable = async (enable: boolean) => { await UpdateWafEnable(enableUpdate.value); } catch (error) { enableUpdate.value.enable = !enable; - loading.value = false; } + loading.value = false; }; onMounted(() => { diff --git a/frontend/src/views/website/website/config/safety/simple-list/index.vue b/frontend/src/views/website/website/config/safety/simple-list/index.vue index bec900d8c..0442699a7 100644 --- a/frontend/src/views/website/website/config/safety/simple-list/index.vue +++ b/frontend/src/views/website/website/config/safety/simple-list/index.vue @@ -151,8 +151,8 @@ const updateEnable = async (enable: boolean) => { await UpdateWafEnable(enableUpdate.value); } catch (error) { enableUpdate.value.enable = !enable; - loading.value = false; } + loading.value = false; }; onMounted(() => { diff --git a/frontend/src/views/website/website/config/safety/value-list/index.vue b/frontend/src/views/website/website/config/safety/value-list/index.vue index 9c24cabfd..3519c454e 100644 --- a/frontend/src/views/website/website/config/safety/value-list/index.vue +++ b/frontend/src/views/website/website/config/safety/value-list/index.vue @@ -147,8 +147,8 @@ const updateEnable = async (enable: boolean) => { await UpdateWafEnable(enableUpdate.value); } catch (error) { enableUpdate.value.enable = !enable; - loading.value = false; } + loading.value = false; }; const submit = async (addArray: string[]) => {