feat: admin dark mode
This commit is contained in:
13
client/store/admin.js
Normal file
13
client/store/admin.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
theme: {
|
||||
dark: false
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
setThemeDarkMode(state, payload) {
|
||||
state.theme.dark = payload
|
||||
}
|
||||
}
|
||||
}
|
@@ -5,6 +5,7 @@ import Vuex from 'vuex'
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
strict: process.env.NODE_ENV !== 'production',
|
||||
state: {
|
||||
loadingStack: [],
|
||||
notification: {
|
||||
|
Reference in New Issue
Block a user