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) => {