mirror of
https://github.com/dataease/dataease.git
synced 2025-02-28 06:35:11 +08:00
36 lines
519 B
JavaScript
36 lines
519 B
JavaScript
![]() |
|
||
|
const getDefaultState = () => {
|
||
|
return {
|
||
|
sceneData: {},
|
||
|
table: {}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const state = getDefaultState()
|
||
|
|
||
|
const mutations = {
|
||
|
setSceneData: (state, sceneData) => {
|
||
|
state.sceneData = sceneData
|
||
|
},
|
||
|
setTable: (state, table) => {
|
||
|
state.table = table
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const actions = {
|
||
|
setSceneData({ commit }, sceneData) {
|
||
|
commit('setSceneData', sceneData)
|
||
|
},
|
||
|
setTable({ commit }, table) {
|
||
|
commit('setTable', table)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default {
|
||
|
namespaced: true,
|
||
|
state,
|
||
|
mutations,
|
||
|
actions
|
||
|
}
|
||
|
|