Commit 7ba3bb2c authored by 武广's avatar 武广

fix: 修复sentry问题

parent 3225d62c
...@@ -269,7 +269,7 @@ const CustomTree = forwardRef(props => { ...@@ -269,7 +269,7 @@ const CustomTree = forwardRef(props => {
// 隐藏所有子树 // 隐藏所有子树
const handleMouseUp = e => { const handleMouseUp = e => {
const isCur = e.path.some( const isCur = e?.path?.some(
item => item =>
item.className && item.className &&
typeof item.className === 'string' && typeof item.className === 'string' &&
......
...@@ -14,15 +14,19 @@ import { ...@@ -14,15 +14,19 @@ import {
} from '@/../config/permission.config'; } from '@/../config/permission.config';
const Admin = props => { const Admin = props => {
const [pendingNum, setpendingNum] = useState({}); const [pendingNum, setPendingNum] = useState({});
const showAfterSaleList = props.permissions[AFTER_SALE_ORDER.LIST]; const showAfterSaleList = props.permissions[AFTER_SALE_ORDER.LIST];
const showCancelBillList = props.permissions[CANCEL_BILL_MANAGE.LIST]; const showCancelBillList = props.permissions[CANCEL_BILL_MANAGE.LIST];
const showPendingDeliveryOrderList = props.permissions[PENDING_DELIVERY_ORDER.LIST]; const showPendingDeliveryOrderList = props.permissions[PENDING_DELIVERY_ORDER.LIST];
const qurey = async () => {
const res = await getPendingNum();
if (res && res.data) {
setPendingNum(res.data);
}
};
useEffect(() => { useEffect(() => {
const qurey = async () => {
const { data } = await getPendingNum();
setpendingNum(data);
};
qurey(); qurey();
}, []); }, []);
......
...@@ -451,7 +451,7 @@ const TableList = props => { ...@@ -451,7 +451,7 @@ const TableList = props => {
multiLogisticsModalRef.current.open( multiLogisticsModalRef.current.open(
{ {
...record, ...record,
packageList: res.data.packageList || [], packageList: res?.data?.packageList || [],
}, },
actionRef, actionRef,
); );
......
...@@ -386,7 +386,7 @@ const OrderList = props => { ...@@ -386,7 +386,7 @@ const OrderList = props => {
skuNo: item.skuId?.toString(), skuNo: item.skuId?.toString(),
orderNo: record.orderNoStr, orderNo: record.orderNoStr,
})), })),
packageList: res.data.packageList || [], packageList: res?.data?.packageList || [],
}, },
actionRef, actionRef,
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment