Przeglądaj źródła

修复盒中盒奖池详情报错

zbb 3 miesięcy temu
rodzic
commit
070c531eb9
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app/boxInBox/components/BoxPopup.tsx

+ 2 - 0
app/boxInBox/components/BoxPopup.tsx

@@ -22,6 +22,8 @@ export interface BoxPopupRef {
 
 export const BoxPopup = forwardRef<BoxPopupRef, BoxPopupProps>(({ onSelect }, ref) => {
   const [activeBucket, setActiveBucket] = useState(0);
+  const [list, setList] = useState<BoxItem[]>([]);
+  const [visible, setVisible] = useState(false);
 
   useImperativeHandle(ref, () => ({
     open: (data: BoxItem[]) => {