From c2b2e9a783907632c8873742051ee70f47a5d655 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:10:40 +0700 Subject: [PATCH] refactor: use lib uuid instead (for local server) --- src/stores/flow/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stores/flow/index.ts b/src/stores/flow/index.ts index 030ff18a..e0773d80 100644 --- a/src/stores/flow/index.ts +++ b/src/stores/flow/index.ts @@ -1,14 +1,15 @@ import { ref } from 'vue'; +import { v4 as uuid } from 'uuid'; import { defineStore } from 'pinia'; const useFlowStore = defineStore('flow', () => { - const rtid = ref(crypto.randomUUID()); + const rtid = ref(uuid()); return { rtid, rotate() { - rtid.value = crypto.randomUUID(); + rtid.value = uuid(); }, }; });