fix: fall back to default public avatar image if user has no avatar

This commit is contained in:
antv
2026-07-08 15:50:44 +07:00
parent bdd58e0d17
commit 9aee6d612c
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -55,9 +55,7 @@
@php
$avatarUrl = Auth::check() && Auth::user()->avatar
? Auth::user()->avatar
: (Auth::check() && Auth::user()->name
? 'https://api.dicebear.com/7.x/notionists/svg?seed=' . urlencode(Auth::user()->name) . '&backgroundColor=e2e8f0'
: asset('images/avatar.png'));
: asset('images/avatar.png');
$deptName = 'Product Team';
if (Auth::check()) {