viewReport.js 287 B

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