From b80bdb8d499eb1e9aed909a8bab2847719540391 Mon Sep 17 00:00:00 2001 From: lgh_ccc <1911384751@qq.com> Date: Fri, 15 Aug 2025 00:15:59 +0800 Subject: [PATCH] fix:fix bug --- frontend/src/components/UserSettings/Appearance.tsx | 2 +- frontend/src/routes/_layout/classifyNews.tsx | 2 +- frontend/src/routes/_layout/items.tsx | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/UserSettings/Appearance.tsx b/frontend/src/components/UserSettings/Appearance.tsx index a941741..800d5be 100644 --- a/frontend/src/components/UserSettings/Appearance.tsx +++ b/frontend/src/components/UserSettings/Appearance.tsx @@ -14,7 +14,7 @@ const Appearance = () => { setTheme(e.value)} + onValueChange={(e) => setTheme(e.value || '')} value={theme} colorPalette="teal" > diff --git a/frontend/src/routes/_layout/classifyNews.tsx b/frontend/src/routes/_layout/classifyNews.tsx index 42cd5ec..446f67c 100644 --- a/frontend/src/routes/_layout/classifyNews.tsx +++ b/frontend/src/routes/_layout/classifyNews.tsx @@ -1,5 +1,5 @@ import { createFileRoute } from "@tanstack/react-router" -import React, { useState } from "react" +import { useState } from "react" import { Input, Button, Card, Spin, message, Typography, Space } from "antd" import { UtilsService } from "@/client" diff --git a/frontend/src/routes/_layout/items.tsx b/frontend/src/routes/_layout/items.tsx index 8a2ef07..c68c5b3 100644 --- a/frontend/src/routes/_layout/items.tsx +++ b/frontend/src/routes/_layout/items.tsx @@ -52,6 +52,7 @@ function ItemsTable() { const setPage = (page: number) => navigate({ + //@ts-ignore search: (prev: { [key: string]: string }) => ({ ...prev, page }), })