当前位置:网站首页>Avoid mutating a prop directly since the value will be overwritten whenever the parent component
Avoid mutating a prop directly since the value will be overwritten whenever the parent component
2022-07-07 11:08:00 【Have a good time I】
First, let's look at the page error
In fact, the problem is very simple, the problem of parent-child components passing values ;
The code of sub components is also very simple
Parent component :
problem : Press save without error , Press cancel to report the error shown above .
And find out why , Principle should Vue Reasons for single data flow , Can't modify at will props In the value of the , Then why can I save this function without reporting errors ?? Both of my calls are the same function ?
Really a little confused !
But I still solved the problem
I put v-model Instead of :visible, In this way, there is no error in saving or canceling
I haven't figured out the specific reason , Should be ant-design-Vue The reason for the underlying design
边栏推荐
- From pornographic live broadcast to live broadcast E-commerce
- QT document
- [système recommandé 01] rechub
- Find the greatest common divisor and the least common multiple (C language)
- Installation and configuration of slurm resource management and job scheduling system
- Rolling puddle Uni_ App (VIII)
- Simple and easy to modify spring frame components
- Unity script visualization about layout code
- Unity determines whether the mouse clicks on the UI
- 2021 summary and 2022 outlook
猜你喜欢
[recommendation system 01] rechub
uniCloud
Mysql的json格式查询
Network engineer test questions and answers in May of the first half of 2022
2021 summary and 2022 outlook
软考一般什么时候出成绩呢?在线蹬?
shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)
What are the contents of the intermediate soft test, the software designer test, and the test outline?
The gun startles the dragon, and the crowd "locks" Zhou Zhi
Online hard core tools
随机推荐
Transaction rolled back because it has been marked as rollback only
Kitex 重试机制
mif 文件格式记录
在线硬核工具
Use of dotween
如何顺利通过下半年的高级系统架构设计师?
Wallhaven壁纸桌面版
The use of list and Its Simulation Implementation
從色情直播到直播電商
2021-04-08
2021-05-21
2022.7.6DAY598
uniCloud
Installation and configuration of slurm resource management and job scheduling system
uniapp 在onLaunch中跳转页面后,点击事件失效解决方法
Records on the use of easyflash v3.3
Laya common script commands
TypeScript 接口继承
【C#】WinForm运行缩放(变糊)的解决方法
Wallhaven wallpaper desktop version