会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
露娜妹
博客园
首页
新随笔
联系
订阅
管理
2019年3月21日
Vue 报错[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders
摘要: 场景:父组件向子组件传递数据,子组件去试图改变父组件数据的时候。 解决:子组件通过事件向父组件传递信息,让父组件来完成数据的更改。 比如:我的父组件是普通页面,子组件是弹窗的登录界面,父组件传递的数据(reloginDialog)控制登录界面的显示(reloginDialog = true),当登陆
阅读全文
posted @ 2019-03-21 18:18 露娜妹
阅读(7482)
评论(1)
推荐(0)
公告