Update style

This commit is contained in:
2021-08-29 21:40:19 +02:00
parent 1d5cc99877
commit cfed14b1c4
9 changed files with 173 additions and 14 deletions

41
src/store/index.js Normal file
View File

@@ -0,0 +1,41 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const moduleSettings = {
state: {
header: {
title: null,
description: null
}
},
getters: {
getHeader (state) {
return state.header
}
},
mutations: {
setHeader: (state, payload) => {
state.header = {
title: payload.title ?? null,
description: payload.description ?? null
}
},
resetHeaderTitle (state) {
state.header.title = null
},
setHeaderDescription: (state, payload) => {
state.header.description = payload.title
},
resetHeaderDescription (state) {
state.header.description = null
}
}
}
export default new Vuex.Store({
modules: {
settings: moduleSettings
}
})