logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

element ui Error in callback for watcher “options“: “TypeError: Cannot read property ‘level‘ o

这是在使用element ui中的cascader出现的报错原因暂时不清楚,个人理解可能是因为数据源没得到及时更新,而vue是数据驱动的,所以我加了监听器,并且给cascader绑定了一个key,这样只要监听到数据源发生变化,key 就变化,就重新渲染<el-cascader:key="keyValue"//keyValue在data中定义,初始值为0clearable:props="pro

element ui级联选择器props的配置

为什么要配置el-cascader的props?如果配置了这个选项,请求回来的数据,根本不用你去递归处理,只需要把响应的数据赋值给数据源cateList代码如下:<el-cascaderv-model="cateValue":options="cateList":props="cateListProps"></el-cascader>data中:cateList: [],/

[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example becaus

使用vue-awesome-swiper时报的错1、[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.解决方案:给body加上ontouchst

vue An import path cannot end with a ‘.ts‘ extensi

引入src/store/index.ts报错import store from 'src/store/index.ts'改成import store from 'src/store'

#typescript
“TypeError: this.$confirm is not a function“以及“TypeError: this.$message is not a function“

TypeError: this.$confirm is not a functionTypeError: this.$message is not a function在使用element ui时候,报错,我都是局部引入的,连个报错原因是一样的,因为没有在vue的实例上挂载$confirm和$message导致的报错解决方法:在你的入口文件main.js中:import { Message, Me

element ui Error in callback for watcher “options“: “TypeError: Cannot read property ‘level‘ o

这是在使用element ui中的cascader出现的报错原因暂时不清楚,个人理解可能是因为数据源没得到及时更新,而vue是数据驱动的,所以我加了监听器,并且给cascader绑定了一个key,这样只要监听到数据源发生变化,key 就变化,就重新渲染<el-cascader:key="keyValue"//keyValue在data中定义,初始值为0clearable:props="pro

elementUI中的el-checkbox报错Cannot read property ‘length‘ of undefined

在使用el-checkbox时遇上这样的错误:TypeError: Cannot read property ‘length’ of undefinedat VueComponent.isLimitDisabled (element-ui.common.js?ccbf:6452)at Watcher.get (vue.esm.js?efeb:4482)at Watcher.evaluate (vu

element ui级联选择器props的配置

为什么要配置el-cascader的props?如果配置了这个选项,请求回来的数据,根本不用你去递归处理,只需要把响应的数据赋值给数据源cateList代码如下:<el-cascaderv-model="cateValue":options="cateList":props="cateListProps"></el-cascader>data中:cateList: [],/

到底了