update:暂时恢复先前的随机生成uuid

This commit is contained in:
3030332422
2025-10-14 18:06:57 +08:00
parent 13ce67e4c7
commit 0e1392de35
7 changed files with 47 additions and 9 deletions
@@ -114,9 +114,18 @@ function closeAreaCodeSheet() {
showAreaCodeSheet.value = false;
}
// 生成UUID
function generateUUID() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
const r = (Math.random() * 16) | 0;
const v = c === "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
// 获取图形验证码
async function refreshCaptcha() {
const uuid = crypto.randomUUID();
const uuid = generateUUID();
formData.value.captchaId = uuid;
captchaImage.value = `${getEnvBaseUrl()}/user/captcha?uuid=${uuid}&t=${Date.now()}`;
}