diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index 70b12bb7..6fdbf7d2 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -244,7 +244,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => { // 编辑 useEffect(() => { - if (editData !== "") { + if (editData !== "" && editData) { // 基本信息 setForm_info_data({ title: editData.title, diff --git a/src/pages/coupon/list/index.jsx b/src/pages/coupon/list/index.jsx index 9ca17884..4eb36e22 100644 --- a/src/pages/coupon/list/index.jsx +++ b/src/pages/coupon/list/index.jsx @@ -192,6 +192,7 @@ const UseCouponList = () => { const selectionFun = () => {}; const searchCallback = () => { + setState({ isQuery: !state.isQuery }); // getTable(); }; const onPageChange = (data) => {