jws-frontend/src/stores/flow/index.ts
2024-06-25 16:05:42 +07:00

16 lines
279 B
TypeScript

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