fix(core): remove crypto randomuuid api (#10268)

This commit is contained in:
EYHN
2025-02-19 07:32:01 +00:00
parent e5315087cb
commit 60a9572c88
5 changed files with 9 additions and 3 deletions
@@ -42,6 +42,7 @@ import { Framework, FrameworkRoot, getCurrentStore } from '@toeverything/infra';
import { OpClient } from '@toeverything/infra/op';
import { Suspense } from 'react';
import { RouterProvider } from 'react-router-dom';
import { v4 as uuid } from 'uuid';
import { DesktopThemeSync } from './theme-sync';
@@ -209,7 +210,7 @@ export function App() {
function createStoreManagerClient() {
const { port1: portForOpClient, port2: portForWorker } = new MessageChannel();
let portFromWorker: MessagePort | null = null;
let portId = crypto.randomUUID();
let portId = uuid();
const handleMessage = (ev: MessageEvent) => {
if (