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( - + + + )