uni-app 支付宝小程序报错 Avoid mutating a prop directly since the value will be ....
uni-app 支付宝小程序报错 Avoid mutating a prop directly since the value will be …
操作步骤:
- 父级接口获取列表数据并传递给子组件
- 子组件接收进行v-for
预期结果:
并未对props进行修改,无需报错。
实际结果:
报错
bug描述:
支付宝小程序真机场景下报错(开发者工具没有报错),其他平台小程序也没有报错,子组件并没有修改任何props。 “[Vue warn]: 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: “classify” found in —>ScrollTabClassify>at pages/classify/components/ScrollTabClassify.vue pages/classify/index.vue”
| 信息类别 | 信息内容 |
|---|---|
| 产品分类 | uniapp/小程序/阿里 |
| PC开发环境操作系统 | Mac |
| PC开发环境操作系统版本号 | 11.4 |
| 第三方开发者工具版本号 | 2.1.9 |
| 基础库版本号 | 1.24.2 |
| 项目创建方式 | CLI |
| CLI版本号 | 2.0.0-31920210609001 |

更多关于uni-app 支付宝小程序报错 Avoid mutating a prop directly since the value will be ....的实战教程也可以访问 https://www.itying.com/category-93-b0.html

