fix(web): avoid crypto.randomUUID outside secure contexts

Closes #9306
This commit is contained in:
t8y2 authored and GitHub committed 2026-09-17 00:13:29 +08:00
1 parent 2c97e44d82
commit d35d578b03
14 files changed
+88 -23

No files matched your search

@@ -32,6 +32,7 @@ import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Database, Table, Columns, Loader2, Save, Upload, Settings, ChevronRight, X, AlertCircle, ArrowUp, ArrowDown } from "@lucide/vue";
import { ScrollArea } from "@/components/ui/scroll-area";
import { uuid } from "@/lib/common/utils";
const { t } = useI18n();
const store = useConnectionStore();
@@ -752,7 +753,7 @@ async function startInsert() {
execute: async () => {
executing.value = true;
insertCancelled.value = false;
const executionId = crypto.randomUUID();
const executionId = uuid();
activeExecutionId = executionId;
const startedAt = performance.now();
const perTable: TableResult[] = [];