mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 09:09:49 +08:00
重构
This commit is contained in:
@@ -20,7 +20,7 @@ interface DataType {
|
||||
is_ban_login: number;
|
||||
}
|
||||
|
||||
export const SystemAdministratorPage: React.FC = () => {
|
||||
const SystemAdministratorPage = () => {
|
||||
const navigate = useNavigate();
|
||||
const [loading, setLoading] = useState<boolean>(true);
|
||||
const [page, setPage] = useState(1);
|
||||
@@ -228,3 +228,5 @@ export const SystemAdministratorPage: React.FC = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default SystemAdministratorPage;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { Button, Space, Table, Modal, message } 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 { adminRole } from "../../../api/index";
|
||||
import { dateFormat } from "../../../utils/index";
|
||||
@@ -17,7 +17,7 @@ interface DataType {
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export const SystemAdminrolesPage: React.FC = () => {
|
||||
const SystemAdminrolesPage = () => {
|
||||
const [loading, setLoading] = useState<boolean>(true);
|
||||
const [list, setList] = useState<any>([]);
|
||||
const [refresh, setRefresh] = useState(false);
|
||||
@@ -153,3 +153,5 @@ export const SystemAdminrolesPage: React.FC = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default SystemAdminrolesPage;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { useState, useEffect } from "react";
|
||||
import {
|
||||
Row,
|
||||
Form,
|
||||
@@ -17,7 +17,7 @@ import { UploadImageButton } from "../../../compenents";
|
||||
import type { TabsProps } from "antd";
|
||||
import type { CheckboxChangeEvent } from "antd/es/checkbox";
|
||||
|
||||
export const SystemIndexPage: React.FC = () => {
|
||||
const SystemConfigPage = () => {
|
||||
const [form] = Form.useForm();
|
||||
const [loading, setLoading] = useState<boolean>(false);
|
||||
const [logo, setLogo] = useState<string>("");
|
||||
@@ -367,3 +367,5 @@ export const SystemIndexPage: React.FC = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default SystemConfigPage;
|
||||
|
||||
Reference in New Issue
Block a user