Commit 7ea1f4d0 authored by chenshouchao's avatar chenshouchao

fix: MyCircularProgress组件逻辑修复

parent ff0421f5
...@@ -62,9 +62,6 @@ const MyCircularProgress = (props: IMyCircularProgressProps) => { ...@@ -62,9 +62,6 @@ const MyCircularProgress = (props: IMyCircularProgressProps) => {
{children} {children}
</div> </div>
); );
} else {
if (children) {
return children;
} else { } else {
return ( return (
<div <div
...@@ -102,10 +99,13 @@ const MyCircularProgress = (props: IMyCircularProgressProps) => { ...@@ -102,10 +99,13 @@ const MyCircularProgress = (props: IMyCircularProgressProps) => {
</div> </div>
); );
} }
} } else {
if (children) {
return children;
} else { } else {
return null; return null;
} }
}
}; };
export default MyCircularProgress; export default MyCircularProgress;
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