import { Module } from 'vuex' ; import { SET_VALUE } from './actionType' ; export interface IHomeStore { value : string ; } const HomeStore = { namespaced : true , state : { value : '' } , mutations : { [ SET_VALUE ] ( state , payload ) { state . value = payload ; } } , actions : { [ SET_VALUE ] ( { commit } , payload ) { commit ( SET_VALUE , payload ) ; } } } ; export default HomeStore ;