Browse Source

feat: 修改

year 3 weeks ago
parent
commit
4f81be2429
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/components/Card/Card.tsx
  2. 1 1
      src/utils/index.ts

+ 1 - 1
src/components/Card/Card.tsx

@@ -177,7 +177,7 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
                         src={item?.game_icon}
                         alt={item?.game_name_cn}
                         width={"100%"}
-                        height={"1.54rem"}
+                        height={"100%"}
                         className={"h-[100%] w-[100%]"}
                     />
                     {props.isShowOnline && item?.online_user && (

+ 1 - 1
src/utils/index.ts

@@ -77,7 +77,7 @@ export const goBlankPage = async (handler: Function | string, target = "_self")
     const isSafariMobileBrowser =
         /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
 
-    if (isFunHanlder && target === "_blank" && isSafariMobileBrowser) {
+    if (handler && target === "_blank" && isSafariMobileBrowser) {
         newTab = window.open("about:blank");
     }
     let href = "";