fix init load of history data

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2021-04-10 14:04:26 +02:00
parent f7a3488d32
commit c078471360
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ import VueLoadImage from 'vue-load-image'
},
methods: {
refreshHistory: function() {
this.$socket.sendObj('server.history.list', {}, 'server/history/getHistory')
this.$socket.sendObj('server.history.list', { start: 0, limit: 50 }, 'server/history/getHistory')
},
formatDate(date) {
let tmp2 = new Date(date*1000)

View File

@ -59,7 +59,7 @@ export default {
Vue.prototype.$socket.sendObj('machine.update.status', {}, 'server/updateManager/getStatus')
if (payload.plugins.includes("history") !== false) {
Vue.prototype.$socket.sendObj('server.history.list', { start: 1, limit: 50 }, 'server/history/getHistory')
Vue.prototype.$socket.sendObj('server.history.list', { start: 0, limit: 50 }, 'server/history/getHistory')
Vue.prototype.$socket.sendObj('server.history.totals', {}, 'server/history/getTotals')
}
}