Change the async stuff to not render app before theme is loaded
This commit is contained in:
parent
9516d5dd73
commit
3fb531976a
4 changed files with 9 additions and 5 deletions
|
@ -63,9 +63,11 @@ const instance = {
|
|||
case 'name':
|
||||
dispatch('setPageTitle')
|
||||
break
|
||||
case 'theme':
|
||||
setPreset(value, commit)
|
||||
}
|
||||
},
|
||||
setTheme ({ commit }, themeName) {
|
||||
commit('setInstanceOption', { name: 'theme', value: themeName })
|
||||
return setPreset(themeName, commit)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue