diff --git a/config/config.ts b/config/config.ts index 72eca9d6..d2883542 100644 --- a/config/config.ts +++ b/config/config.ts @@ -36,6 +36,7 @@ export default defineConfig({ }, // umi routes: https://umijs.org/docs/routing routes, + access: {}, // Theme for antd: https://ant.design/docs/react/customize-theme-cn theme: { // 如果不想要 configProvide 动态设置主题需要把这个设置为 default diff --git a/package.json b/package.json index 95c3519e..a065cde6 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "@umijs/plugin-openapi": "^1.3.0", "@umijs/preset-ant-design-pro": "^1.3.0", "@umijs/preset-dumi": "^1.1.0", - "@umijs/preset-react": "^1.8.17", + "@umijs/preset-react": "^2.1.0", "cross-env": "^7.0.0", "cross-port-killer": "^1.3.0", "detect-installer": "^1.0.0",