This commit is contained in:
禺狨
2023-03-23 14:01:23 +08:00
4 changed files with 16 additions and 34 deletions

View File

@@ -1,7 +1,6 @@
import React, { useState, useEffect } from "react";
import {
Row,
Col,
Form,
Input,
Image,
@@ -11,21 +10,16 @@ import {
Switch,
Checkbox,
} from "antd";
import styles from "./index.module.less";
import { appConfig } from "../../api/index";
import { useParams, useNavigate } from "react-router-dom";
import { UploadImageButton } from "../../compenents";
import type { TabsProps } from "antd";
import type { CheckboxChangeEvent } from "antd/es/checkbox";
export const SystemIndexPage: React.FC = () => {
const params = useParams();
const navigate = useNavigate();
const [form] = Form.useForm();
const [loading, setLoading] = useState<boolean>(false);
const [logo, setLogo] = useState<string>("");
const [thumb, setThumb] = useState<string>("");
const [tabKey, setTabKey] = useState(1);
useEffect(() => {
getDetail();
@@ -337,19 +331,10 @@ export const SystemIndexPage: React.FC = () => {
},
];
const onChange = (key: string) => {
setTabKey(Number(key));
};
return (
<>
<Row className="playedu-main-body">
<Tabs
className="float-left"
defaultActiveKey="1"
items={items}
onChange={onChange}
/>
<Tabs className="float-left" defaultActiveKey="1" items={items} />
</Row>
</>
);