set only interval, when not exists, fix #31
This commit is contained in:
parent
20a00c3f8a
commit
349fcbe529
@ -232,7 +232,7 @@ export default {
|
||||
}
|
||||
this.stat = response.data
|
||||
|
||||
if (process.browser) {
|
||||
if (process.browser && !this.interval) {
|
||||
this.interval = setInterval(async () => {
|
||||
const response = await this.$axios.get('api/player/stats/?stats=all')
|
||||
this.stat = response.data
|
||||
|
Loading…
x
Reference in New Issue
Block a user