Assign background color, if specified by API
This commit is contained in:
parent
55efba432a
commit
67155acf40
|
@ -47,6 +47,11 @@ export default {
|
||||||
} else if (response.data.user && this.$route.name == 'login') {
|
} else if (response.data.user && this.$route.name == 'login') {
|
||||||
this.$router.push('/')
|
this.$router.push('/')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set background color, to whatever api said
|
||||||
|
if (response.data.background_color) {
|
||||||
|
document.body.style.backgroundColor = response.data.background_color
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
|
|
Loading…
Reference in a new issue