实现单机版
This commit is contained in:
30
src/render/store/modules/satelliteSystem.js
Normal file
30
src/render/store/modules/satelliteSystem.js
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user