diff --git a/package.json b/package.json index a4619aca..a0641da4 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "antd-style": "^3.7.0", "classnames": "^2.5.1", "dayjs": "^1.11.13", - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.1.0", + "react-dom": "^19.1.0" }, "devDependencies": { "@ant-design/pro-cli": "^3.3.0", @@ -57,8 +57,8 @@ "@types/express": "^4.17.21", "@types/jest": "^29.5.13", "@types/lodash": "^4.17.10", - "@types/react": "^18.3.11", - "@types/react-dom": "^18.3.0", + "@types/react": "^19.1.5", + "@types/react-dom": "^19.1.5", "@types/react-helmet": "^6.1.11", "@umijs/lint": "^4.3.24", "@umijs/max": "^4.3.24", diff --git a/src/global.less b/src/global.less index a9a0c51b..1b5ae780 100644 --- a/src/global.less +++ b/src/global.less @@ -4,9 +4,9 @@ body, height: 100%; margin: 0; padding: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, - 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', - 'Noto Color Emoji'; + font-family: + -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', + sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; } .colorWeak { diff --git a/src/pages/TableList/index.tsx b/src/pages/TableList/index.tsx index 14f526ac..3fe5fea4 100644 --- a/src/pages/TableList/index.tsx +++ b/src/pages/TableList/index.tsx @@ -97,7 +97,7 @@ const TableList: React.FC = () => { const [showDetail, setShowDetail] = useState(false); - const actionRef = useRef(); + const actionRef = useRef(null); const [currentRow, setCurrentRow] = useState(); const [selectedRowsState, setSelectedRows] = useState([]);