浏览代码

修复盒中盒奖池详情报错

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[]) => {