mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 15:02:21 +03:00
исправляем баг баннера
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
let opened = false;
|
let opened = false;
|
||||||
let preventMove = false;
|
let preventMove = false;
|
||||||
const blobDebug = false;
|
const blobDebug = false;
|
||||||
const devMode = false;
|
const devMode = true;
|
||||||
|
|
||||||
//****************************************************variable section**********************************************************/
|
//****************************************************variable section**********************************************************/
|
||||||
//******************************************************************************************************************************/
|
//******************************************************************************************************************************/
|
||||||
|
|||||||
@@ -8,19 +8,25 @@
|
|||||||
import Anydata from "../widgets/Anydata.svelte";
|
import Anydata from "../widgets/Anydata.svelte";
|
||||||
import Alarm from "../components/Alarm.svelte";
|
import Alarm from "../components/Alarm.svelte";
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {});
|
||||||
setTimeout(timeIsOut, 1000);
|
|
||||||
});
|
|
||||||
|
|
||||||
export let layoutJson;
|
export let layoutJson;
|
||||||
|
|
||||||
|
$: layoutJson.length, timeOut();
|
||||||
|
|
||||||
|
let empty = false;
|
||||||
|
|
||||||
|
function timeOut() {
|
||||||
|
empty = false;
|
||||||
|
setTimeout(timeIsOut, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
export let pages;
|
export let pages;
|
||||||
|
|
||||||
export let show;
|
export let show;
|
||||||
|
|
||||||
export let wsPush = (ws, topic, status) => {};
|
export let wsPush = (ws, topic, status) => {};
|
||||||
|
|
||||||
let empty = false;
|
|
||||||
|
|
||||||
function timeIsOut() {
|
function timeIsOut() {
|
||||||
if (layoutJson.length === 0) {
|
if (layoutJson.length === 0) {
|
||||||
empty = true;
|
empty = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user