
记录错误
qq_46100747
这个作者很懒,什么都没留下…
展开
-
vue中cannot read property of undefined的问题分析及解决
vue项目中经常会遇到"cannot read property ‘某某某’ of undefined"的报错信息。下面我就简单分析下报错原因及解决方法问题描述info是服务端返回的数据,是一个对象。我们要做的就是把对象里的值放到页面显示,先看一下我出错的代码片段<div class="shop-header-discounts" @click="toggleSupportShow"> <div class="discounts-left"> <div转载 2022-03-29 11:11:56 · 28342 阅读 · 0 评论 -
解决vue 子组件修改父组件传来的props值报错问题
vue不推荐直接在子组件中修改父组件传来的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: "editSingupDat原创 2021-03-24 15:57:57 · 859 阅读 · 0 评论 -
element-ui 左侧菜单栏默认高亮问题
<el-menu :default-active="$route.path" unique-opened :collapse-transition="false" router background-color="#333744" text-color="#fff" active-text-color="#ffd04b"> <el-menu-item :index="原创 2021-03-23 10:24:55 · 1128 阅读 · 0 评论 -
eslintrc.js 文件报错
ellintrc.js 文件详解`解决参考原创 2021-03-11 07:57:27 · 249 阅读 · 0 评论 -
记错--父子传值
// 这个错误,翻译过来后很好理解,需要得到的数组,却得到了一个对象。顾名思义,数据类型错误。//根据此处错误信息提示的位置上的数据,将其类型该成数组就可以解决这个问题了。props: { value: { type: Boolean, default: false }, editData: { type: Array, default () { return [] } } },Dial.原创 2021-03-09 14:15:25 · 121 阅读 · 0 评论 -
记录错误 MongoDB
MongoError: Cannot use a session that has ended at applySession (E:\node_demo\demo17\node_modules\mongodb\lib\core\sessions.js:695:12) at _command (E:\node_demo\demo17\node_modules\mongodb\lib\core\wireprotocol\command.js:58:17) at command (E:\原创 2021-03-01 11:14:25 · 269 阅读 · 0 评论