viewReport.ts 290 B

123456789101112131415
  1. import { defineStore } from "pinia";
  2. export const useViewReportStore = props => {
  3. const { modalUuid } = props;
  4. return defineStore(`viewReport-${modalUuid}`, {
  5. state: () => ({
  6. reportId: null
  7. }),
  8. actions: {
  9. init({ reportId }) {
  10. this.reportId = reportId;
  11. }
  12. }
  13. })();
  14. };