viewReport.ts 341 B

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