You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import * as types from '../mutation-type'
|
|
const home = {
|
|
state: {
|
|
number: 1
|
|
},
|
|
mutations: {
|
|
[types.SET_NUM] (state, num) {
|
|
state.number = num
|
|
}
|
|
},
|
|
actions: {},
|
|
getters: {
|
|
number: state => {
|
|
return state.number
|
|
}
|
|
}
|
|
|
|
}
|
|
export default home
|