Преглед на файлове

fix: remove game url suffix

Before преди 7 месеца
родител
ревизия
77af1102b2
променени са 1 файла, в които са добавени 2 реда и са изтрити 5 реда
  1. 2 5
      src/components/Card/Card.tsx

+ 2 - 5
src/components/Card/Card.tsx

@@ -51,14 +51,11 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
             mode: groupType!,
         };
         getGameDetailApi(params).then((res) => {
-            const url =
-                whiteUrls.indexOf(window.location.hostname) === -1
-                    ? `${res.data?.game_url}&brand=${brandRef.current}`
-                    : `${res.data?.game_url}&brand=${brandRef.current}&gameListIp=http://192.168.0.176:8000&gameResIp=http://192.168.0.2:8888&resServerIp=http://192.168.0.176:12580`;
             if (res.data && res.data.game_url) {
+                const url = `${res.data?.game_url}&brand=${brandRef.current}`;
                 window.open(url);
             } else {
-                Toast.show("数据错误");
+                Toast.show("data Error");
             }
         });
     };