mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-27 07:22:28 +03:00
очистка
This commit is contained in:
@@ -42,6 +42,13 @@
|
||||
prevStatus = widget.status;
|
||||
|
||||
for (let i = 0; i < widget.status.length; i++) {
|
||||
//if (i === 0 && widget.status[i].x === 0 && widget.status[i].y1 === 0) {
|
||||
// clearCart();
|
||||
// widget.status = [];
|
||||
// console.log("[i]", "clear cart data");
|
||||
// return;
|
||||
//}
|
||||
|
||||
if (i === 0) {
|
||||
labels[i] = getDDMM(widget.status[i].x);
|
||||
} else {
|
||||
@@ -50,14 +57,6 @@
|
||||
values[i] = [widget.status[i].y1];
|
||||
}
|
||||
|
||||
//console.log("[i]", JSON.stringify(widget.status));
|
||||
|
||||
if (widget.maxCount == 0 || widget.maxCount == "0") {
|
||||
clearCart();
|
||||
//console.log("[i]", "clear cart data");
|
||||
return;
|
||||
}
|
||||
|
||||
datachart = {
|
||||
labels: labels,
|
||||
datasets: [
|
||||
|
||||
Reference in New Issue
Block a user