|
|
|
@ -184,6 +184,7 @@ export default { |
|
|
|
|
playingStages: [] |
|
|
|
|
}, |
|
|
|
|
timer: null, |
|
|
|
|
redisTimer: null, |
|
|
|
|
pickerOptions: { |
|
|
|
|
shortcuts: [{ |
|
|
|
|
text: '此刻', |
|
|
|
@ -224,6 +225,7 @@ export default { |
|
|
|
|
this.getData() |
|
|
|
|
this.$once('hook:beforeDestroy', function() { |
|
|
|
|
clearInterval(this.timer) |
|
|
|
|
clearInterval(this.redisTimer) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -289,6 +291,13 @@ export default { |
|
|
|
|
this.page = 1; |
|
|
|
|
this.getData(); |
|
|
|
|
}, |
|
|
|
|
getData() { |
|
|
|
|
this.getList() |
|
|
|
|
if (!Setting.isDev) { |
|
|
|
|
clearInterval(this.redisTimer) |
|
|
|
|
this.redisTimer = setInterval(this.getRedis, 1000) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
add() { |
|
|
|
|
this.$router.push("/match/add"); |
|
|
|
|
}, |
|
|
|
|