report.js 249 B

12345678910111213141516
  1. /* eslint no-param-reassign: 0 */
  2. export default {
  3. namespaced: true,
  4. state: {
  5. song: {}
  6. },
  7. actions: {
  8. reportSong: ({ commit }, song) => commit("reportSong", song)
  9. },
  10. mutations: {
  11. reportSong(state, song) {
  12. state.song = song;
  13. }
  14. }
  15. };