From b052d165b8eb0b0f43d23ced57f5c5768d7a33e1 Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Tue, 1 Jul 2025 11:44:03 +0800 Subject: [PATCH] =?UTF-8?q?switch=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GuipSwitch.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/GuipSwitch.vue b/src/components/GuipSwitch.vue index 65cdc21..4792c09 100644 --- a/src/components/GuipSwitch.vue +++ b/src/components/GuipSwitch.vue @@ -59,17 +59,15 @@ export default { loading: false, // 加载状态 }; }, - // watch: { - // modelValue(newVal) { - // console.log(newVal,'newVal---'); - // this.internalValue = newVal; - // }, - // }, watch: { value(newVal) { this.internalValue = newVal; }, + modelValue(newVal) { + this.internalValue = newVal; + }, internalValue(newVal) { + this.internalValue = newVal; this.$emit('input', newVal); }, },