mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-10-31 13:34:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import Vue from 'vue'
 | |
| import Vuex from 'vuex'
 | |
| 
 | |
| Vue.use(Vuex)
 | |
| 
 | |
| export default new Vuex.Store({
 | |
|   state: {
 | |
|     drawer: true,
 | |
|   },
 | |
|   getters: {
 | |
|     drawer: state => state.drawer,
 | |
|   },
 | |
|   actions: {
 | |
|     updateDrawer: ({ commit }, payload) => {
 | |
|       commit('setDrawer', payload)
 | |
|     }
 | |
|   },
 | |
|   mutations: {
 | |
|     setDrawer: (state, payload) => {
 | |
|       state.drawer = payload
 | |
|     },
 | |
|   },
 | |
| })
 | 
