This commit is contained in:
none
2023-03-23 16:35:20 +08:00
parent e7421f67cc
commit 9f90bd75d3
22 changed files with 190 additions and 157 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;