Avoid theme reload
This commit is contained in:
parent
ff8e3b5458
commit
288a8edf9d
|
@ -15,8 +15,9 @@ export default {
|
||||||
mobileActivePanel: 'timeline'
|
mobileActivePanel: 'timeline'
|
||||||
}),
|
}),
|
||||||
created () {
|
created () {
|
||||||
if (this.$store.state.config.savedTheme) {
|
const savedTheme = this.$store.state.config.savedTheme
|
||||||
this.$store.dispatch('setOption', { name: 'theme', value: this.$store.config.savedTheme })
|
if (savedTheme && (savedTheme !== this.$store.config.theme)) {
|
||||||
|
this.$store.dispatch('setOption', { name: 'theme', value: savedTheme })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in New Issue