feat: add flow store
This commit is contained in:
parent
02c5aa2a1c
commit
44ae39907e
7 changed files with 83 additions and 55 deletions
16
src/stores/flow/index.ts
Normal file
16
src/stores/flow/index.ts
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue