From 0e8af7d19b250babd207f9435d62b2dfdb44df6a Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sun, 5 May 2024 01:22:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20StatusSwitch=E4=BD=BF=E7=94=A8v-mod?= =?UTF-8?q?el=E6=9B=BF=E6=8D=A2v-mode:value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/status-switch.vue | 4 ++-- src/views/group/index.vue | 2 +- src/views/job/task/index.vue | 2 +- src/views/notify/scene/index.vue | 2 +- src/views/retry/scene/index.vue | 2 +- src/views/workflow/task/index.vue | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/common/status-switch.vue b/src/components/common/status-switch.vue index cabaf9d..bfa9e32 100644 --- a/src/components/common/status-switch.vue +++ b/src/components/common/status-switch.vue @@ -5,7 +5,7 @@ defineOptions({ name: 'StatusSwitch' }); -const modelValue = defineModel('value', { default: 0 }); +const model = defineModel({ default: 0 }); interface Emits { (e: 'fetch', value: Api.Common.EnableStatusNumber, callback: () => void): void; @@ -26,7 +26,7 @@ const handleUpdateValue = (value: Api.Common.EnableStatusNumber) => {