diff --git a/src/pages/device/productmanage/index.jsx b/src/pages/device/productmanage/index.jsx index f55c6c1..dc85181 100644 --- a/src/pages/device/productmanage/index.jsx +++ b/src/pages/device/productmanage/index.jsx @@ -482,8 +482,8 @@ const handleRemove = async (ids) => { } const LoadfunData= async(params)=>{ await getGoodstechnologypage(params).then((r) => { - setdatafunctionSource( r.data.data) - settotalfun( r.data.total) + setdatafunctionSource( r.data?.data) + settotalfun( r.data?.total) }); } const onTabChange = (key) => { @@ -656,8 +656,8 @@ const handleRemove = async (ids) => { params.productVesionId=props.location.query.values.id await getGoodstechnologypage(params).then((r) => { data = r.data.data; - setdatafunctionSource( r.data.data) - total = r.data.total; + setdatafunctionSource( r.data?.data) + total = r.data?.total; }); return { data: data,