Add basic configuration module, make it work for title and theme.
This commit is contained in:
parent
340b21475d
commit
1d64b76211
6 changed files with 47 additions and 10 deletions
|
@ -1,5 +1,3 @@
|
|||
import StyleSetter from '../../services/style_setter/style_setter.js'
|
||||
|
||||
export default {
|
||||
data: () => ({
|
||||
availableStyles: [],
|
||||
|
@ -13,8 +11,7 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
selected () {
|
||||
const fullPath = `/static/css/${this.selected}`
|
||||
StyleSetter.setStyle(fullPath)
|
||||
this.$store.dispatch('setOption', { name: 'theme', value: this.selected })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue