MySQL query optimization. Added loading component.
This commit is contained in:
@@ -98,6 +98,12 @@ export function getDateArray(data, startDate, endDate, unit) {
|
||||
|
||||
function findData(t) {
|
||||
const x = data.find(e => {
|
||||
console.log(
|
||||
new Date(e.t),
|
||||
getLocalTime(new Date(e.t)),
|
||||
getLocalTime(new Date(e.t)).getTime(),
|
||||
normalize(new Date(t)).getTime(),
|
||||
);
|
||||
return getLocalTime(new Date(e.t)).getTime() === normalize(new Date(t)).getTime();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user