From cca526f7a1a3d29648539f0a8dcbca784a3d454f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4=E6=B5=AE=E5=B0=98?= <18510549872@163.comm> Date: Thu, 26 Oct 2023 00:24:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E7=AD=9B=E9=80=89,?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/question-list/index.jsx | 2 +- src/main.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/question-list/index.jsx b/src/components/question-list/index.jsx index 4e784f4..71c12a3 100644 --- a/src/components/question-list/index.jsx +++ b/src/components/question-list/index.jsx @@ -86,7 +86,7 @@ const QuestionList = (props) => { }, ], onFilter: (value, record) => { - return value === 0 ? record : record.grade === value + return value === 0 ? record : record.subjectDifficult === value }, width: 90, render: (key) => { diff --git a/src/main.tsx b/src/main.tsx index b65e600..aed007f 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -5,10 +5,14 @@ import router from '@/router' import { RouterProvider, } from "react-router-dom"; +import { ConfigProvider } from 'antd'; +import zhCN from 'antd/locale/zh_CN'; ReactDOM.createRoot(document.getElementById('root')!).render( - + + + )