 
                                        
                                    
                                    - 发布:2021-07-29 17:01
- 更新:2021-08-27 16:03
- 阅读:534
产品分类: uniapp/小程序/阿里
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10.0.15063
HBuilderX类型: 正式
HBuilderX版本号: 3.1.12
第三方开发者工具版本号: 2.1.9.0
基础库版本号: 1
项目创建方式: HBuilderX
操作步骤:
                                    
                                         
                                
                                                                                                预期结果:
                                    
                                    
                                        无异常
                                     
                                
                                                                                                无异常
实际结果:
                                    
                                    
                                        报错
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: "bgAsRight"
                                     
                                
                                                            报错
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: "bgAsRight"
bug描述:
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: "bgAsRight"
我看这个问题在19年确认过bug,现在还有,是在支付宝小程序中提示的。
父组件往子组件中传递的值,在子组件中只是拿来展示用了,并没有做修改。
这个还是bug还是什么呀。
 
             
             
             
			 
            
2 个回复
5***@qq.com (作者)
基础库版本号没找到在哪,随便写了个
5***@qq.com (作者)
没有人吗