12345678910111213141516171819202122 |
- const state = {
- shareCourse: null,
- }
- const mutations = {
- SHARE_COURSE: (state, data) => {
- state.shareCourse = data
- }
- }
- const actions = {
- shareCourse({ commit }, data) {
- commit('SHARE_COURSE', data)
- }
- }
- export default {
- namespaced: true,
- state,
- mutations,
- actions
- }
|