From 9d0c02481626b1c28dd798f9e6b9673cca72b5b3 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Sat, 25 Dec 2021 01:51:40 +0100 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD?= =?UTF-8?q?=D1=8F=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.svelte | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 22e151a..307319c 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -153,6 +153,12 @@ { name: "Устройство 1", id: "987654321", + ip: "192.168.88.233", + status: false, + }, + { + name: "Устройство 2", + id: "987654321", ip: "192.168.88.235", status: false, }, @@ -483,7 +489,9 @@ function pushConfigToEsp() { //config.forEach((element) => { - wsSendMsg(wsSelected, JSON.stringify(config)); + wsSendMsg(wsSelected, "/changed" + JSON.stringify(config)); + clearData(); + sendCurrentPageName(); //}); } @@ -582,16 +590,14 @@ Тип Подтип Id - 4 {#each config as element} {element.type} - {element.subtype} - {element.id} - 4 + + {/each}