30 lines
403 B
JavaScript
30 lines
403 B
JavaScript
|
|
const state = {
|
||
|
|
name: ''
|
||
|
|
}
|
||
|
|
|
||
|
|
// getters
|
||
|
|
// const getters = {
|
||
|
|
// get: (state) => state.name
|
||
|
|
// }
|
||
|
|
|
||
|
|
// actions
|
||
|
|
const actions = {
|
||
|
|
set ({ commit }, { satelliteSystem }) {
|
||
|
|
commit('set', satelliteSystem)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// mutations
|
||
|
|
const mutations = {
|
||
|
|
set (state, satelliteSystem) {
|
||
|
|
state.name = satelliteSystem
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default {
|
||
|
|
namespaced: true,
|
||
|
|
state,
|
||
|
|
// getters,
|
||
|
|
actions,
|
||
|
|
mutations
|
||
|
|
}
|