[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “placement”
当 elementUi 自动升级到 2.15.8 以上版本时,浏览器控制台会出现此报错。
现在看到 gitlab issue 上也有很多人遇到了这个问题,都是在2.15.8版本左右出现的报错
解决方法
npm uninstall element-ui
npm install element-ui@2.15.8 -s
更改 package.json; 不要前面的 ^
"element-ui": "2.15.8",