删除多余的代码

This commit is contained in:
叶志超
2021-12-23 10:13:30 +08:00
parent 141aa83f2d
commit 1aba962b06
3 changed files with 7 additions and 56 deletions

View File

@@ -1,30 +0,0 @@
const state = {
id: null
}
// getters
// const getters = {
// get: (state) => state.value
// }
// actions
const actions = {
set ({ commit }, { trackedSatelliteId }) {
commit('set', trackedSatelliteId)
}
}
// mutations
const mutations = {
set (state, trackedSatelliteId) {
state.id = trackedSatelliteId
}
}
export default {
namespaced: true,
state,
// getters,
actions,
mutations
}