redeploy
This commit is contained in:
parent
6dda8c69c1
commit
6ba0ae72e7
|
@ -142,11 +142,11 @@ export default function (props: JSX.HTMLAttributes<HTMLDivElement>) {
|
||||||
// .order("created_time", { ascending: false })
|
// .order("created_time", { ascending: false })
|
||||||
// .limit(1);
|
// .limit(1);
|
||||||
|
|
||||||
// if (lastData1![0] == lastData2![0]) {
|
if (lastData1![0] == lastData2![0]) {
|
||||||
// alert("Device offline!");
|
alert("Device offline!");
|
||||||
// } else if (lastData1![0].created_time == lastData2![0].created_time) {
|
} else if (lastData1![0].created_time == lastData2![0].created_time) {
|
||||||
// alert("Device offline!");
|
alert("Device offline!");
|
||||||
// }
|
}
|
||||||
|
|
||||||
await checkStatusDevice();
|
await checkStatusDevice();
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ export default function (props: JSX.HTMLAttributes<HTMLDivElement>) {
|
||||||
|
|
||||||
if (!item.running) {
|
if (!item.running) {
|
||||||
if (location.pathname != "/") {
|
if (location.pathname != "/") {
|
||||||
// navigate("/");
|
navigate("/");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setCanNavigate(true);
|
setCanNavigate(true);
|
||||||
|
|
Loading…
Reference in New Issue