Closed mayongkang1 closed 1 month ago
错误布局截图:
正确布局截图:
pro版本 3.2.1
package.json依赖版本信息 "dependencies": { "@ant-design/icons": "^4.8.1", "@ant-design/pro-components": "^2.6.48", "@types/nprogress": "^0.2.3", "@umijs/route-utils": "^2.2.2", "antd": "^5.13.2", "antd-style": "^3.6.1", "classnames": "^2.5.1", "lodash": "^4.17.21", "moment": "^2.30.1", "nprogress": "^0.2.0", "omit.js": "^2.0.2", "querystring": "^0.2.1", "rc-menu": "^9.12.4", "rc-util": "^5.38.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-helmet-async": "^1.3.0" },
"dependencies": { "@ant-design/icons": "^4.8.1", "@ant-design/pro-components": "^2.6.48", "@types/nprogress": "^0.2.3", "@umijs/route-utils": "^2.2.2", "antd": "^5.13.2", "antd-style": "^3.6.1", "classnames": "^2.5.1", "lodash": "^4.17.21", "moment": "^2.30.1", "nprogress": "^0.2.0", "omit.js": "^2.0.2", "querystring": "^0.2.1", "rc-menu": "^9.12.4", "rc-util": "^5.38.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-helmet-async": "^1.3.0" },
defaultSetting.ts文件 ` import { ProLayoutProps } from '@ant-design/pro-components';
/**
export default Settings; `
其他信息: 只有在项目启动后首次进入会出现布局错误,刷新页面后布局正常。
检查下你运行时的配置和你的静态配置差异呢
错误布局截图:
正确布局截图:
pro版本 3.2.1
package.json依赖版本信息
"dependencies": { "@ant-design/icons": "^4.8.1", "@ant-design/pro-components": "^2.6.48", "@types/nprogress": "^0.2.3", "@umijs/route-utils": "^2.2.2", "antd": "^5.13.2", "antd-style": "^3.6.1", "classnames": "^2.5.1", "lodash": "^4.17.21", "moment": "^2.30.1", "nprogress": "^0.2.0", "omit.js": "^2.0.2", "querystring": "^0.2.1", "rc-menu": "^9.12.4", "rc-util": "^5.38.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-helmet-async": "^1.3.0" },
defaultSetting.ts文件 ` import { ProLayoutProps } from '@ant-design/pro-components';
/**
export default Settings; `
其他信息: 只有在项目启动后首次进入会出现布局错误,刷新页面后布局正常。