解决安装依赖报错:npm ERR! Unexpected end of JSON input 解决方法:
npm i -g npm@5
npm install --registry=https://registry.npm.taobao.org --loglevel=silly
npm cache clean --force
并且一定要记得安装以来的时候应该打开powershell进行安装,不要在编辑器的终端进行安装!不要在编辑器的终端进行安装!不要在编辑器的终端进行安装!
解决antd组件中table的key值警告
将如下代码添加上
rowKey={(record, index) => complete${record.id}${index}
}
就能解决了~