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