mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-02 19:20:54 -05:00
sort dashboard home event list
This commit is contained in:
parent
a6b5986dd6
commit
ef028794ac
@ -117,6 +117,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result.sort((a, b) => {
|
||||||
|
if (a.time > b.time) {
|
||||||
|
return -1;
|
||||||
|
} else if (a.time < b.time) {
|
||||||
|
return 1;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user