From 73210a869048d6468b55717660d0ca558d0c2aab Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期一, 24 十一月 2025 09:49:43 +0800
Subject: [PATCH] 优化
---
app/components/base/app-icon/index.tsx | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/app/components/base/app-icon/index.tsx b/app/components/base/app-icon/index.tsx
index 1938c42..5668195 100644
--- a/app/components/base/app-icon/index.tsx
+++ b/app/components/base/app-icon/index.tsx
@@ -45,7 +45,6 @@
const AppIcon: FC<AppIconProps> = ({
size = 'medium',
rounded = false,
- iconType,
icon,
background,
imageUrl,
@@ -53,7 +52,7 @@
innerIcon,
onClick,
}) => {
- const isValidImageIcon = iconType === 'image' && imageUrl
+ const isValidImageIcon = true
return <span
className={classNames(appIconVariants({ size, rounded }), className)}
@@ -62,7 +61,7 @@
>
{isValidImageIcon
// eslint-disable-next-line @next/next/no-img-element
- ? <img src={imageUrl} className="w-full h-full" alt="app icon" />
+ ? <img src={imageUrl || ''} className="w-full h-full" alt="app icon" />
: (innerIcon || ((icon && icon !== '') ? <em-emoji id={icon} /> : <em-emoji id='馃' />))
}
</span>
--
Gitblit v1.8.0