refactor: use lib uuid instead (for local server)
This commit is contained in:
parent
fd7c368ae6
commit
c2b2e9a783
1 changed files with 3 additions and 2 deletions
|
|
@ -1,14 +1,15 @@
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
import { v4 as uuid } from 'uuid';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
|
|
||||||
const useFlowStore = defineStore('flow', () => {
|
const useFlowStore = defineStore('flow', () => {
|
||||||
const rtid = ref(crypto.randomUUID());
|
const rtid = ref(uuid());
|
||||||
|
|
||||||
return {
|
return {
|
||||||
rtid,
|
rtid,
|
||||||
|
|
||||||
rotate() {
|
rotate() {
|
||||||
rtid.value = crypto.randomUUID();
|
rtid.value = uuid();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue