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