fix: DAGI Router agents logic, MicroDAO logo URL handling

This commit is contained in:
Apple
2025-12-01 06:03:08 -08:00
parent e3accd4df0
commit 909258fdcb
3 changed files with 35 additions and 42 deletions

View File

@@ -190,7 +190,11 @@ export default function MicrodaoDetailPage() {
<div className="w-24 h-24 rounded-2xl bg-slate-800 border border-white/10 flex items-center justify-center overflow-hidden shadow-xl">
{microdao.logo_url ? (
// eslint-disable-next-line @next/next/no-img-element
<img src={microdao.logo_url} alt={microdao.name} className="w-full h-full object-cover" />
<img
src={microdao.logo_url.startsWith('/api/static') ? microdao.logo_url : microdao.logo_url.startsWith('/static') ? `/api${microdao.logo_url}` : microdao.logo_url}
alt={microdao.name}
className="w-full h-full object-cover"
/>
) : (
<Building2 className="w-10 h-10 text-slate-600" />
)}