feat: add flow store

This commit is contained in:
Methapon2001 2024-06-25 16:05:42 +07:00
parent 02c5aa2a1c
commit 44ae39907e
7 changed files with 83 additions and 55 deletions

16
src/stores/flow/index.ts Normal file
View file

@ -0,0 +1,16 @@
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;