引入antd后发现页面没有样式

635 阅读1分钟

问题:yarn install antd之后,使用antd没有样式效果。

解决方法:在index.js文件头部引入 import 'antd/dist/antd.min.css'