摘要:
<script> <Menu defaultSelectedKeys={['/home']} //数组类型 让那个key被选中 这个值不应该写死,应该根据路径确定 defaultOpenKeys={['sub1']} mode="inline" //菜单下拉方式 vertival theme="da 阅读全文
摘要:
https://github.com/jgthms/minireset.css/blob/master/minireset.css 把里面内容复制粘贴放入public/css/reset.css 加入 html, body { width: 100%; height: 100%; } #root { 阅读全文
摘要:
render里面要直接跳到某个页面要用return <Redirect to="/" /> 不用this.props.history.replace('/'); 因为render里面必定return this.props.history.replace用在点击回调事件里面 1.admin.js里面 阅读全文