mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 23:12:34 +03:00
Управление ошибками
This commit is contained in:
@@ -793,10 +793,18 @@
|
||||
|
||||
function cancelAlarm(alarmKey) {
|
||||
console.log("[x]", alarmKey);
|
||||
if ((alarmKey = "wscle")) {
|
||||
if (alarmKey === "wscle") {
|
||||
errorsJson.wscle = 0;
|
||||
wsSendMsg(selectedWs, '/rorre|{"wscle":0}');
|
||||
}
|
||||
if (alarmKey === "jsbuf") {
|
||||
errorsJson.jsbuf = 0;
|
||||
wsSendMsg(selectedWs, '/rorre|{"jsbuf":0}');
|
||||
}
|
||||
if (alarmKey === "jserr") {
|
||||
errorsJson.jserr = 0;
|
||||
wsSendMsg(selectedWs, '/rorre|{"jserr":0}');
|
||||
}
|
||||
wsSendMsg(selectedWs, "/rorre|" + JSON.stringify(errorsJson));
|
||||
}
|
||||
//*******************************************************initialisation********************************************************************/
|
||||
onMount(async () => {
|
||||
|
||||
Reference in New Issue
Block a user