Browse Source

recover switch condition

tid1731
刘嘉炜 7 months ago
parent
commit
532cfbe94b
  1. 6
      src/subpackage/device/pages/switch_manage/switch_manage.vue

6
src/subpackage/device/pages/switch_manage/switch_manage.vue

@ -241,10 +241,12 @@ export default {
};
//2021-12-17 set-rpio set-rpio-lock () set-rpio-lock
// 20240530 set-rpio-lock
if(switchInfo.hardware_type=="Light"&&_data.data.value.status=="high")_data.data.name = "set-rpio-lock"
if(switchInfo.hardware_type=="Light"&&status==2)_data.data.name = "set-rpio-lock"
// 20240530 set-rpio-lock yzk
if(
switchInfo?.hardware_type === "Light"
// &&this.changeLowerCase(switchInfo?.hardware_connect_method ?? '') === 'yzk'
&&this.changeLowerCase(switchInfo?.hardware_connect_method ?? '') === 'yzk'
&&(status === 2 || status === 0)
){
_data.data.name = "set-rpio-lock";

Loading…
Cancel
Save