Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e73545

Browse files
committed
perf: update pacakges / remove history
1 parent 5f4921a commit 9e73545

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

‎package.json‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,47 +23,48 @@
2323
"pnp": false
2424
},
2525
"dependencies": {
26+
"@ant-design/icons": "^4.7.0",
2627
"@rematch/core": "^2.2.0",
27-
"antd": "^4.22.7",
28+
"antd": "^4.23.2",
2829
"axios": "^0.27.2",
29-
"core-js": "^3.25.0",
30+
"core-js": "^3.25.3",
3031
"lodash": "^4.17.21",
3132
"react": "^18.2.0",
3233
"react-dom": "^18.2.0",
3334
"react-loadable": "^5.5.0",
34-
"react-redux": "^8.0.2",
35-
"react-router-dom": "^6.3.0",
35+
"react-redux": "^8.0.4",
36+
"react-router-dom": "^6.4.1",
3637
"redux": "^4.2.0"
3738
},
3839
"devDependencies": {
39-
"@babel/core": "^7.18.13",
40-
"@babel/eslint-parser": "^7.18.9",
40+
"@babel/core": "^7.19.3",
41+
"@babel/eslint-parser": "^7.19.1",
4142
"@babel/plugin-proposal-class-properties": "^7.18.6",
42-
"@babel/plugin-proposal-decorators": "^7.18.10",
43+
"@babel/plugin-proposal-decorators": "^7.19.3",
4344
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
4445
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
4546
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
4647
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
47-
"@babel/plugin-transform-runtime": "^7.18.10",
48-
"@babel/preset-env": "^7.18.10",
48+
"@babel/plugin-transform-runtime": "^7.19.1",
49+
"@babel/preset-env": "^7.19.3",
4950
"@babel/preset-react": "^7.18.6",
50-
"@babel/runtime": "^7.18.9",
51+
"@babel/runtime": "^7.19.0",
5152
"antd-dayjs-webpack-plugin": "^1.0.6",
52-
"autoprefixer": "^10.4.8",
53+
"autoprefixer": "^10.4.12",
5354
"babel-loader": "^8.2.5",
5455
"babel-plugin-import": "^1.13.5",
5556
"clean-webpack-plugin": "^4.0.0",
5657
"copy-webpack-plugin": "^11.0.0",
5758
"css-loader": "^6.7.1",
58-
"css-minimizer-webpack-plugin": "^4.0.0",
59+
"css-minimizer-webpack-plugin": "^4.1.0",
5960
"dayjs": "^1.11.5",
60-
"eslint": "^8.22.0",
61+
"eslint": "^8.24.0",
6162
"eslint-plugin-prettier": "^4.2.1",
62-
"eslint-plugin-react": "^7.31.0",
63+
"eslint-plugin-react": "^7.31.8",
6364
"eslint-plugin-react-hooks": "^4.6.0",
6465
"eslint-webpack-plugin": "^3.2.0",
6566
"express": "^4.18.1",
66-
"favicons": "^6.2.2",
67+
"favicons": "6.2.2",
6768
"favicons-webpack-plugin": "^5.0.2",
6869
"happypack": "^5.0.1",
6970
"html-webpack-plugin": "^5.5.0",
@@ -75,7 +76,7 @@
7576
"postcss-loader": "^7.0.1",
7677
"prettier": "^2.7.1",
7778
"style-loader": "^3.3.1",
78-
"terser-webpack-plugin": "^5.3.5",
79+
"terser-webpack-plugin": "^5.3.6",
7980
"webpack": "^5.74.0",
8081
"webpack-bundle-analyzer": "^4.6.1",
8182
"webpack-cli": "^4.10.0",

‎src/container/routers/index.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ConfigProvider } from "antd";
1616
import zhCN from "antd/lib/locale-provider/zh_CN";
1717

1818
// import { createBrowserHistory as createHistory } from "history/"; // URL模式的history
19-
import { createHashHistory as createHistory } from "history"; // 锚点模式的history
19+
// import { createHashHistory as createHistory } from "history"; // 锚点模式的history
2020

2121
import Loadable from "react-loadable"; // 用于代码分割时动态加载模块
2222

@@ -61,7 +61,7 @@ const NotFound = Loadable({
6161
loading: Loading,
6262
});
6363

64-
const history = createHistory(); // 实例化history对象
64+
// const history = createHistory(); // 实例化history对象
6565

6666
/** 组件 **/
6767
export default function RootRouterContainer(props) {
@@ -88,7 +88,7 @@ export default function RootRouterContainer(props) {
8888
return (
8989
<ConfigProvider locale={zhCN}>
9090
<>
91-
<Routerhistory={history}>
91+
<Router>
9292
<div className="boss">
9393
<Routes>
9494
<Route path="/" element={<Navigate replace to="/home" />} />

‎src/container/test/index.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import ImgTest from "../../assets/test.jpg";
1414
import Mp3 from "../../assets/starSky.mp3";
1515

1616
/** 组件 **/
17-
export default function TestPageContainer() {
17+
export default function TestPageContainer(props) {
18+
1819
const dispatch = useDispatch();
1920

2021
const count = useSelector((state) => state.test.count); // 引入test model中的count数据
@@ -145,6 +146,7 @@ export default function TestPageContainer() {
145146
>
146147
<Input
147148
type="password"
149+
autoComplete="false"
148150
prefix={<KeyOutlined />}
149151
placeholder="密码"
150152
/>
@@ -209,7 +211,7 @@ export default function TestPageContainer() {
209211
</div>
210212
<Modal
211213
title="模态框"
212-
visible={visible}
214+
open={visible}
213215
onOk={() => setVisible(false)}
214216
onCancel={() => setVisible(false)}
215217
>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /