MDRY

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  前端学习中所遇到的问题

Uncaught TypeError: Cannot read property 'type' of undefined
摘要:今天学习vue3中的ref,运行代码就报这种错误,网上各种方法试了不行,后面发现是返回对象中没返回定义的名字,但是报错是不会直接报名字没定义,我写的对象类型ref,其中定义了个type,结果报的错是报的type没定义,所以这种细节问题一定要谨慎 阅读全文

posted @ 2022-09-02 22:27 小懵丹儿 阅读(70) 评论(0) 推荐(0) 编辑

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.
摘要:在学习vue2的过程中遇到了这种问题: 在vue2.0中子组件触发改变值的时候vue组件会报错,例如: Avoid mutating a prop directly since the value will be overwritten whenever the parent component r 阅读全文

posted @ 2022-08-27 11:17 小懵丹儿 阅读(390) 评论(0) 推荐(0) 编辑

Property or method "value" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components
摘要:报错如下: 这种情况是在template中或者方法中写了‘value’,但是在data中没有定义 阅读全文

posted @ 2022-08-27 11:13 小懵丹儿 阅读(185) 评论(0) 推荐(0) 编辑

vue使用组件<el-date-picker>报错: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
摘要:Vue使用element-ui组件库中的<el-data-picker>标签报错 报以下错误,最开始我以为是props通信的问题,但后来发现是版本出现问题导致的 解决办法:版本2.14.1的版本已经都不可以了需要更新版本2.15.8 阅读全文

posted @ 2022-08-27 11:06 小懵丹儿 阅读(465) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示