VUE Error:if there's nested data,rowKey is required错误
Error:if there's nested data,rowKey is required错误原因分析Error:if there's nested data,rowKey is requiredError:if there’s nested data,rowKey is required原因是element-ui的版本问题,项目中package.json中版本信息如下"depend...
·
Error:if there's nested data,rowKey is required错误原因分析
Error:if there’s nested data,rowKey is required
原因是element-ui的版本问题,项目中package.json中版本信息如下
"dependencies": {
"@stomp/stompjs": "^4.0.8",
"axios": "^0.18.0",
"echarts": "^4.1.0",
"element-ui": "^2.4.8",
"js-cookie": "^2.2.0",
"localforage": "^1.7.2",
"node-sass": "4.9.2",
"normalize.css": "^8.0.0",
"nprogress": "^0.2.0",
"vue": "^2.6.10",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
}
“element-ui”: “^2.4.8”,版本带 ^ 的默认使用最新版本。所以产生错误提示。
解决办法
1.去掉 ^ 符号
"element-ui": "2.4.8",
2.保持版本配置不变,在表单中加入 row-key属性:
row-key="id"
更多推荐
已为社区贡献1条内容
所有评论(0)