优化代码

This commit is contained in:
none
2023-03-23 13:56:14 +08:00
parent f84f192d4b
commit aa3115dca0
4 changed files with 16 additions and 22 deletions

View File

@@ -10,11 +10,11 @@ import {
Image,
} from "antd";
import type { ColumnsType } from "antd/es/table";
import styles from "./index.module.less";
// import styles from "./index.module.less";
import { PlusOutlined, ExclamationCircleFilled } from "@ant-design/icons";
import { user } from "../../api/index";
import { dateFormat } from "../../utils/index";
import { Link, useNavigate } from "react-router-dom";
import { Link } from "react-router-dom";
import { TreeDepartment, PerButton } from "../../compenents";
import { MemberCreate } from "./compenents/create";
import { MemberUpdate } from "./compenents/update";
@@ -31,7 +31,6 @@ interface DataType {
}
export const MemberPage: React.FC = () => {
const navigate = useNavigate();
const [loading, setLoading] = useState<boolean>(true);
const [page, setPage] = useState(1);
const [size, setSize] = useState(10);