From 75f5d8d02bf1682375e6ece4c04dd539a38af529 Mon Sep 17 00:00:00 2001 From: Xutaotaotao Date: Tue, 7 May 2024 19:51:31 +0800 Subject: [PATCH] change sort --- src/layouts/index.tsx | 8 ++------ src/pages/imageCompress.tsx | 7 ++++--- src/pages/index.tsx | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index a00309e..5969bc1 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -1,19 +1,15 @@ -import { Nav, Layout,Typography } from "@douyinfe/semi-ui"; -import { - IconSemiLogo, -} from "@douyinfe/semi-icons"; +import { Nav, Layout } from "@douyinfe/semi-ui"; import { IconImage,IconIntro } from "@douyinfe/semi-icons-lab"; -import styles from "./index.module.scss"; import "@/assets/normalize.css"; import { Outlet, useLocation, history } from "umi"; import { OnSelectedData } from "@douyinfe/semi-ui/lib/es/navigation"; import Logo from "@/assets/img/XTools.svg"; import JsonSvg from "@/assets/img/json.svg"; import ImageCompressSvg from "@/assets/img/imageCompress.svg"; +import styles from "./index.module.scss"; const { Content } = Layout; -const {Title} = Typography const NavMap = [ {itemKey: "/home", text: "首页", icon: , className: styles.navItem}, diff --git a/src/pages/imageCompress.tsx b/src/pages/imageCompress.tsx index 8b3020f..c64784e 100644 --- a/src/pages/imageCompress.tsx +++ b/src/pages/imageCompress.tsx @@ -1,8 +1,9 @@ -import { InboxOutlined } from "@ant-design/icons"; -import { Form,Button,Image } from "@douyinfe/semi-ui"; +import { useRef, useState } from "react"; import { Card, Col, Row, Upload } from "antd"; import Compressor from "compressorjs"; -import { useRef, useState } from "react"; +import { InboxOutlined } from "@ant-design/icons"; +import { Form,Button,Image } from "@douyinfe/semi-ui"; + const { Dragger } = Upload; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ee03638..cadc070 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,8 +1,8 @@ import { Button, Col,Space, Row } from "antd"; import { Typography } from '@douyinfe/semi-ui'; import { history } from "umi"; -import "./index.scss"; import bigLogo from "@/assets/img/biglogo1.svg"; +import "./index.scss"; const { Title } = Typography;