report.ts 315 B

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