From 64d105c61b64d79f2ea7bc195cb4b48a33e2219f Mon Sep 17 00:00:00 2001 From: dhb52 Date: Thu, 9 May 2024 17:22:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=9C=BA=E6=99=AF=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?-=E9=99=90=E6=B5=81=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/typings/api.d.ts | 2 +- .../modules/notify-config-operate-drawer.vue | 20 ++++--------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 7fddb6a..f0b1df4 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -559,7 +559,7 @@ declare namespace Api { /** 限流开关 */ rateLimiterStatus: Api.Common.EnableStatusNumber; /** 每秒限流阈值 */ - rateLimiterThreshold: number; + rateLimiterThreshold: number | null; /** 描述 */ description: string; }>; diff --git a/src/views/notify/scene/modules/notify-config-operate-drawer.vue b/src/views/notify/scene/modules/notify-config-operate-drawer.vue index 8781712..2341ac6 100644 --- a/src/views/notify/scene/modules/notify-config-operate-drawer.vue +++ b/src/views/notify/scene/modules/notify-config-operate-drawer.vue @@ -99,8 +99,8 @@ function createDefaultModel(): Model { notifyStatus: 1, notifyScene: 1, notifyThreshold: 16, - rateLimiterStatus: 1, - rateLimiterThreshold: 1, + rateLimiterStatus: 0, + rateLimiterThreshold: null, description: '' }; } @@ -308,11 +308,7 @@ watch(visible, () => { /> - + { - - -