redirect to configure page when config not exist
This commit is contained in:
parent
86a003fe15
commit
7c825b359b
@ -211,6 +211,10 @@ export default {
|
|||||||
|
|
||||||
async sysStats () {
|
async sysStats () {
|
||||||
const response = await this.$axios.get('api/player/stats/?stats=all')
|
const response = await this.$axios.get('api/player/stats/?stats=all')
|
||||||
|
|
||||||
|
if (!response.data) {
|
||||||
|
this.$router.push('/configure')
|
||||||
|
}
|
||||||
this.stat = response.data
|
this.stat = response.data
|
||||||
|
|
||||||
if (process.browser) {
|
if (process.browser) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user