Merge branch 'master' of git.code.tencent.com:beijing-rtss-test/bj-rtss-client

This commit is contained in:
Yuan 2023-11-14 15:12:19 +08:00
commit 31e5048880

View File

@ -62,7 +62,6 @@ watch(
);
function setNewRelayState(relay: Relay) {
if (relay && relay instanceof Relay) {
relayState.value = {
id: relay.datas.id,
code: relay.datas.code,
@ -71,7 +70,6 @@ function setNewRelayState(relay: Relay) {
operateOptions = relay.states.xh
? [{ label: '驱动落下', value: false }]
: [{ label: '驱动吸起', value: true }];
}
subscribeState(relay);
}
@ -94,10 +92,10 @@ function unSubscribeState(g: Relay) {
}
function updateState(newVal: RelayState) {
(relayState.value.xh = newVal.states.xh || false),
(operateOptions = newVal.states.xh
relayState.value.xh = newVal.states.xh || false;
operateOptions = newVal.states.xh
? [{ label: '驱动落下', value: false }]
: [{ label: '驱动吸起', value: true }]);
: [{ label: '驱动吸起', value: true }];
}
function changePosition(td: boolean) {