|
@@ -81,6 +81,9 @@ class Login extends Component {
|
|
|
const TabChildren = [];
|
|
const TabChildren = [];
|
|
|
const otherChildren = [];
|
|
const otherChildren = [];
|
|
|
React.Children.forEach(children, (item) => {
|
|
React.Children.forEach(children, (item) => {
|
|
|
|
|
+ if (!item) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
// eslint-disable-next-line
|
|
// eslint-disable-next-line
|
|
|
if (item.type.__ANT_PRO_LOGIN_TAB) {
|
|
if (item.type.__ANT_PRO_LOGIN_TAB) {
|
|
|
TabChildren.push(item);
|
|
TabChildren.push(item);
|
|
@@ -104,7 +107,7 @@ class Login extends Component {
|
|
|
</Tabs>
|
|
</Tabs>
|
|
|
{otherChildren}
|
|
{otherChildren}
|
|
|
</div>
|
|
</div>
|
|
|
- ) : children
|
|
|
|
|
|
|
+ ) : [...children]
|
|
|
}
|
|
}
|
|
|
</Form>
|
|
</Form>
|
|
|
</div>
|
|
</div>
|