jws-frontend/src/stores/flow/index.ts
2024-08-21 14:19:31 +07:00

17 lines
288 B
TypeScript

import { ref } from 'vue';
import { v4 as uuid } from 'uuid';
import { defineStore } from 'pinia';
const useFlowStore = defineStore('flow', () => {
const rtid = ref(uuid());
return {
rtid,
rotate() {
rtid.value = uuid();
},
};
});
export default useFlowStore;