Browse Source

sort dashboard home event list

pull/6/head
LouisLam 4 years ago
parent
commit
ef028794ac
  1. 10
      src/pages/DashboardHome.vue

10
src/pages/DashboardHome.vue

@ -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;
}
}

Loading…
Cancel
Save