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 |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/app/components/base/app-icon/index.tsx b/app/components/base/app-icon/index.tsx
index ac17af1..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)}
@@ -61,8 +60,8 @@
     onClick={onClick}
   >
     {isValidImageIcon
-
-      ? <img src={imageUrl} className="h-full w-full" alt="app icon" />
+      // eslint-disable-next-line @next/next/no-img-element
+      ? <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