Explorar el Código

fix:灯控滑块传值

anxiaoxia hace 1 mes
padre
commit
ac2d439ea8
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/views/envmonitor/taiguv1/components/Lamp/LightMore.vue

+ 1 - 2
src/views/envmonitor/taiguv1/components/Lamp/LightMore.vue

@@ -142,8 +142,7 @@ watch(
         if (!newVal) {
             return
         }
-        let { brightValue } = lampData.value
-        lampData.value = { ...newVal, brightValue }
+        lampData.value = { ...newVal }
     },
     { deep: true } // 添加深度监听
 )