Skip to content

Commit 48680b7

Browse files
李钿李钿
authored andcommitted
增加判断条件,只有当状态未 loading 时才显示 <i> 即loading图标
1 parent f6ddb61 commit 48680b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FooterNode.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export default class FooterNode extends PureComponent{
2424

2525
return(
2626
<div className={className}>
27-
<i/>
27+
{
28+
loaderState === STATS.loading ? <i/> : ""
29+
}
2830
</div>
2931
)
3032
}

0 commit comments

Comments
 (0)