mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 03:39:34 +08:00
重构
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { Spin, Button, Tree, Modal, message, Tooltip } from "antd";
|
||||
import styles from "./index.module.less";
|
||||
// import styles from "./index.module.less";
|
||||
import { PlusOutlined, ExclamationCircleFilled } from "@ant-design/icons";
|
||||
import { department } from "../../api/index";
|
||||
import { PerButton } from "../../compenents";
|
||||
@@ -18,14 +18,7 @@ interface Option {
|
||||
children?: Option[];
|
||||
}
|
||||
|
||||
interface DataType {
|
||||
id: React.Key;
|
||||
name: string;
|
||||
created_at: string;
|
||||
sort: number;
|
||||
}
|
||||
|
||||
export const DepartmentPage: React.FC = () => {
|
||||
const DepartmentPage = () => {
|
||||
const navigate = useNavigate();
|
||||
const permisssions = useSelector((state: any) => state.permisssions);
|
||||
const [loading, setLoading] = useState<boolean>(true);
|
||||
@@ -398,3 +391,5 @@ export const DepartmentPage: React.FC = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default DepartmentPage;
|
||||
|
||||
Reference in New Issue
Block a user