diff --git a/src/views/CustomerConfig.vue b/src/views/CustomerConfig.vue index 7328319..9dd7db5 100644 --- a/src/views/CustomerConfig.vue +++ b/src/views/CustomerConfig.vue @@ -17,7 +17,33 @@
- + + + + @@ -91,6 +117,12 @@ export default { }, handleGoHome() { this.$router.push('/dashboard'); + }, + formatTimeStamp(timeStamp) { + return new Date(timeStamp).toLocaleString(); + }, + sortByTimestamp(a, b) { + return new Date(a.metadata.TimeStamp) - new Date(b.metadata.TimeStamp); } }, mounted() { @@ -122,6 +154,10 @@ export default { \ No newline at end of file +import { format } from 'core-js/core/date';