- 优化 tree,查找问题,undefined异常

This commit is contained in:
sin
2019-03-13 00:15:14 +08:00
parent 3575c6255c
commit 0c8a79a8ed
4 changed files with 6 additions and 27 deletions

View File

@@ -3,19 +3,7 @@
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import {
Card,
Form,
Input,
Select,
Spin,
Button,
Modal,
message,
Table,
Divider,
Tree,
} from 'antd';
import { Card, Form, Input, Spin, Button, Modal, message, Table, Divider, Tree } from 'antd';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import styles from './RoleList.less';
@@ -39,10 +27,6 @@ const CreateForm = Form.create()(props => {
});
};
const selectStyle = {
width: 200,
};
const title = modalType === 'add' ? '添加一个 Role' : '更新一个 Role';
const okText = modalType === 'add' ? '添加' : '更新';
return (