redirect to configure page when config not exist

This commit is contained in:
Jonathan Baecker 2020-05-08 15:32:12 +02:00
parent 86a003fe15
commit 7c825b359b

View File

@ -211,6 +211,10 @@ export default {
async sysStats () {
const response = await this.$axios.get('api/player/stats/?stats=all')
if (!response.data) {
this.$router.push('/configure')
}
this.stat = response.data
if (process.browser) {