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, () => { /> - + { - - -