wjx 1 rok temu
rodzic
commit
0f54d13f06
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      src/components/QueryForm/index.tsx

+ 7 - 7
src/components/QueryForm/index.tsx

@@ -332,18 +332,18 @@ const QueryForm: React.FC<Props> = (props) => {
         if (isGameId || isOrderGameId || isParentId || isParentIds || isGameIds || isSuperParentGameId) {
             getGameListNew.run({ sourceSystem }).then(res => {
                 const { gameList, parentGameList, superGameList } = res
-                if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
+                // if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
                     setGameList(gameList?.map((item: { id: any; game_name: any }) => ({ id: item.id, name: item.game_name })) || [])
-                }
+                // }
                 setParentGameList(parentGameList)
                 setSuperGameList(superGameList)
             })
 
-            if (sourceSystem === 'ZX_ONE') {
-                getGameChoiceList.run().then(res => {
-                    setGameList(res || [])
-                })
-            }
+            // if (sourceSystem === 'ZX_ONE') {
+            //     getGameChoiceList.run().then(res => {
+            //         setGameList(res || [])
+            //     })
+            // }
         }
     }, [isGameId, isGameIds, isOrderGameId, isParentId, isParentIds, isSuperParentGameId, sourceSystem])