Jelajahi Sumber

fix: update 促销

Before 10 bulan lalu
induk
melakukan
c2a3bbc001
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/app/[locale]/(TabBar)/(entire)/promo/page.tsx

+ 2 - 1
src/app/[locale]/(TabBar)/(entire)/promo/page.tsx

@@ -3,7 +3,6 @@ import Empty from "@/components/Empty";
 import { server } from "@/utils/server";
 
 import Box from "@/components/Box";
-
 const getPromotionApi = () => {
     return server
         .request<BannerRep[]>({
@@ -23,6 +22,8 @@ const Promo = async () => {
             {promotion.map((item, index) => (
                 <Box key={item.id} action={item.action_type} actionData={item.action_params}>
                     <img
+                        width={0}
+                        height={0}
                         src={item.content!}
                         alt={"Image"}
                         className={"h-[1.16rem] w-[100%] rounded-[0.0833rem]"}