content.js 446 B

1234567891011121314151617
  1. const contentStore = {
  2. state: {
  3. columnId: '111111111111111'
  4. },
  5. mutations: {
  6. setColumnId: (state, columnId) => {
  7. state.columnId = columnId,
  8. console.log(columnId, state.columnId, 'columnId/state')
  9. }
  10. },
  11. // actions: {
  12. // saveColumnId: ({ commit, state }, columnId) => {
  13. // commit('setColumnId', columnId)
  14. // }
  15. // }
  16. }
  17. export default contentStore;