From 532e3610a25a546e2b0b7e625621ce6e2f483f4e Mon Sep 17 00:00:00 2001 From: caorushizi <84996057@qq.com> Date: Sun, 26 May 2024 14:28:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=20=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=88=86=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/renderer/src/App.tsx | 2 +- packages/renderer/src/nodes/HomePage/index.tsx | 7 +------ packages/renderer/src/types.ts | 5 +++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/renderer/src/App.tsx b/packages/renderer/src/App.tsx index 6d44fc4b..6d0e2e70 100644 --- a/packages/renderer/src/App.tsx +++ b/packages/renderer/src/App.tsx @@ -2,13 +2,13 @@ import { ConfigProvider, theme } from "antd"; import React, { FC, Suspense, lazy, useEffect } from "react"; import { useDispatch } from "react-redux"; import { BrowserRouter, Route, Routes } from "react-router-dom"; -import { DownloadFilter } from "./nodes/HomePage"; import { setAppStore, increase } from "./store"; import "dayjs/locale/zh-cn"; import zhCN from "antd/locale/zh_CN"; import "./App.scss"; import useElectron from "./hooks/electron"; import Loading from "./components/Loading"; +import { DownloadFilter } from "./types"; const AppLayout = lazy(() => import("./layout/App")); const HomePage = lazy(() => import("./nodes/HomePage")); diff --git a/packages/renderer/src/nodes/HomePage/index.tsx b/packages/renderer/src/nodes/HomePage/index.tsx index e1774708..868b4bf2 100644 --- a/packages/renderer/src/nodes/HomePage/index.tsx +++ b/packages/renderer/src/nodes/HomePage/index.tsx @@ -12,7 +12,7 @@ import "./index.scss"; import PageContainer from "../../components/PageContainer"; import { usePagination } from "ahooks"; import useElectron from "../../hooks/electron"; -import { DownloadStatus, DownloadType } from "../../types"; +import { DownloadFilter, DownloadStatus, DownloadType } from "../../types"; import { ProList } from "@ant-design/pro-components"; import { DownloadOutlined, @@ -32,11 +32,6 @@ import { moment } from "../../utils"; const { Text } = Typography; -export enum DownloadFilter { - list = "list", - done = "done", -} - interface Props { filter?: DownloadFilter; } diff --git a/packages/renderer/src/types.ts b/packages/renderer/src/types.ts index f2f682d8..ee163439 100644 --- a/packages/renderer/src/types.ts +++ b/packages/renderer/src/types.ts @@ -23,3 +23,8 @@ export enum DownloadType { m3u8 = "m3u8", bilibili = "bilibili", } + +export enum DownloadFilter { + list = "list", + done = "done", +}