From 77fa90882bf2ab696e42af730540e344f36e9695 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Thu, 22 Feb 2024 09:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/device/productmanage/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,