[Vue warn]: Avoid mutating a prop directly since the value will be overwritten w

69 阅读1分钟

[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent c

[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent c_uniapp [vue warn]: avoid mutating a prop directly _不想学习只想玩的博客-CSDN博客

[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” vue引入element ui组件中的el-date-picker报错 解决方法:添加 align=“center”

<el-date-picker v-model="infoForm.time" align="center"
                        type="datetime" placeholder="请选择预计登陆时间">
                    </el-date-picker>