import React from 'react'; import { Tabs, Alert } from 'antd'; import ByMobile from './byMobile'; import ByPassword from './byPassword'; export default function Render(props) { const { data, methods } = props; const { channels, oakFullpath, oakId, loading } = data; const { goToMobile } = methods; if (loading) { return null; } const items = [ { key: 'password', label: '原密码验证', children: , }, { key: 'mobile', label: '手机号验证', children: , }, ]; if (channels.length === 0) { return ( 请您先
goToMobile()}> 点此绑定手机号
再进行密码修改 } type="info"/>); } return channels.includes(ele.key))}/>; }