whatIsNew.ts 272 B

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