瀏覽代碼

fix:灯控滑块传值

anxiaoxia 1 月之前
父節點
當前提交
ac2d439ea8
共有 1 個文件被更改,包括 1 次插入2 次删除
  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 } // 添加深度监听
 )