From 5127ded7d56744567394d22844f9ed9885de2c60 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 15 Oct 2025 19:46:10 +0800 Subject: [PATCH] fix --- src/utils/functions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/functions.ts b/src/utils/functions.ts index 8d31eaa..5041656 100644 --- a/src/utils/functions.ts +++ b/src/utils/functions.ts @@ -229,8 +229,9 @@ export async function copyToClipboard(text: string): Promise { } export function getRandomId() { - return customAlphabet("0123456789abcdefghijklmnopqrstuvwxyz") -} + const nanoid = customAlphabet("0123456789abcdefghijklmnopqrstuvwxyz") + return nanoid() +} // function getChromeVersion() { // var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)