fix init load of history data
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
f7a3488d32
commit
c078471360
@ -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)
|
||||
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user