From 27a746b9ba72c826ddb9385feb70e4e55030e8d8 Mon Sep 17 00:00:00 2001 From: shuaiplus <2327005759@qq.com> Date: Tue, 6 May 2025 03:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E5=9C=A8=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E4=B9=8B=E5=89=8D=E5=8A=A0=E8=BD=BD=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E7=94=9F=E6=88=90=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/util.avatar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/util.avatar.js b/web/util.avatar.js index a5b1d26..47589de 100644 --- a/web/util.avatar.js +++ b/web/util.avatar.js @@ -9,6 +9,8 @@ async function ensureDicebear() { } } +ensureDicebear(); + export async function createAvatarSVG(userName) { await ensureDicebear(); return dicebear.createAvatar(micah, { seed: userName, baseColor: ["f7e1c3", "f9c9b6", "f2d6cb", "f8ce8e", "eac393"],backgroundColor: ["b6e3f4","c0aede","d1d4f9"],backgroundType: ["gradientLinear","solid"] }).toString();