ソースを参照

修复盒中盒奖池详情报错

zbb 3 ヶ月 前
コミット
070c531eb9
1 ファイル変更2 行追加0 行削除
  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[]) => {