当前位置:网站首页>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
边栏推荐
- Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
- PR Lecture Notes
- [untitled]
- Cmake learning manual
- SQL Server knowledge collection 11: Constraints
- [pyqt] the cellwidget in tablewidget uses signal and slot mechanism
- 书签整理-程序员常用网站导航
- “梦想杯”2017 年江苏省信息与未来小学生夏令营 IT 小能手 PK 之程序设计试题
- Network foundation (1)
- PHP \ newline cannot be output
猜你喜欢
【亲测可行】error while loading shared libraries的解决方案
[untitled]
單調性約束與反單調性約束的區別 monotonicity and anti-monotonicity constraint
【C#】WinForm运行缩放(变糊)的解决方法
[untitled]
2021 summary and 2022 outlook
Wallhaven壁纸桌面版
P2788 math 1 - addition and subtraction
What are the contents of the intermediate soft test, the software designer test, and the test outline?
Still cannot find RPC dispatcher table failed to connect in virtual KD
随机推荐
How to prepare for the advanced soft test (network planning designer)?
How to successfully pass the senior system architecture designer in the second half of the year?
The gun startles the dragon, and the crowd "locks" Zhou Zhi
Poj1821 fence problem solving Report
BUUCTF---Reverse---reverse1
2022.7.3DAY595
[untitled]
Laya common script commands
China Southern Airlines pa3.1
Unity downloads files through the server address
Wallhaven wallpaper desktop version
When do you usually get grades in the soft exam? Online pedaling?
MPX plug-in
[C #] the solution of WinForm operation zoom (blur)
uniapp 在onLaunch中跳轉頁面後,點擊事件失效解决方法
Basic knowledge of process (orphan, zombie process)
Use of dotween
【亲测可行】error while loading shared libraries的解决方案
Records on the use of easyflash v3.3
uniCloud