当前位置:网站首页>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
边栏推荐
- JS implementation chain call
- 2021-05-21
- CSAPP bomb lab parsing
- The difference between monotonicity constraint and anti monotonicity constraint
- 2022.7.3DAY595
- 2021-04-08
- [pro test feasible] error while loading shared libraries solution
- Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
- The concept, implementation and analysis of binary search tree (BST)
- 一些线上学术报告网站与机器学习视频
猜你喜欢
IDEA快捷键大全
China Southern Airlines pa3.1
Transaction rolled back because it has been marked as rollback-only解决
香橙派OrangePi 4 LTS开发板通过Mini PCIE连接SATA硬盘的操作方法
Qtcreator sets multiple qmake
Monai version has been updated to 0.9. See what new functions it has
简单易修改的弹框组件
2022年7月10日“五心公益”活动通知+报名入口(二维码)
Wallhaven wallpaper desktop version
深入理解Apache Hudi异步索引机制
随机推荐
Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
Find the greatest common divisor and the least common multiple (C language)
Transaction rolled back because it has been marked as rollback only
[système recommandé 01] rechub
Get pictures through opencv, change channels and save them
Some online academic report websites and machine learning videos
Installation and configuration of slurm resource management and job scheduling system
请问申购新股哪个证券公司开户是最好最安全的
Multithreaded application (thread pool, singleton mode)
[untitled]
Basic knowledge of process (orphan, zombie process)
Typescript interface inheritance
What does intermediate software evaluator test
How much review time does it usually take to take the intermediate soft exam?
Template initial level template
VR development optimization
Unity websocket client
Go Slice 比较
软考一般什么时候出成绩呢?在线蹬?
JSON format query of MySQL