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

fix: 更新白名单后缀

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

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

@@ -52,7 +52,7 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
         };
         getGameDetailApi(params).then((res) => {
             const url =
-                whiteUrls.indexOf(window.location.hostname) !== -1
+                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) {