import { MutationTree } from 'vuex' ; import { MiStageState } from '@store/types' ; export const mutations = { SET_STAGES ( state , stages ) { state . stages = stages ; } , SET_LAYERS ( state , layers ) { state . layers = layers ; } , SET_ACTIVE_STAGE ( state , id ) { state . active . stage = id ; } , SET_ACTIVE_LAYER ( state , id ) { state . active . layer = id ; } } ;