faster stat
This commit is contained in:
parent
47ff11e9f8
commit
240bef3f67
@ -209,7 +209,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
sysStats () {
|
||||
async sysStats () {
|
||||
const response = await this.$axios.get('api/stats/?stats=all', { headers: { Authorization: 'Bearer ' + this.$store.state.auth.jwtToken }, progress: false })
|
||||
this.stat = response.data
|
||||
|
||||
this.interval = setInterval(async () => {
|
||||
await this.$store.dispatch('auth/inspectToken')
|
||||
const response = await this.$axios.get('api/stats/?stats=all', { headers: { Authorization: 'Bearer ' + this.$store.state.auth.jwtToken }, progress: false })
|
||||
|
Loading…
x
Reference in New Issue
Block a user