vue-bug-解决-Error in v-on handler: “TypeError: Cannot read properties of null (reading ‘ruleForm‘)“
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in v-on handler: “TypeError: Cannot read properties of null (reading ‘ruleForm’)”代码如下:<el-form-itemlabel="药品类型" prop="typeid"><el-select v-model=
·
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in v-on handler: “TypeError: Cannot read properties of null (reading ‘ruleForm’)”
代码如下:
<el-form-item label="药品类型" prop="typeid">
<el-select v-model="this.ruleForm.typeid" filterable placeholder="请选择" >
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>s
</el-form-item>
对于上面的代码中的this带来的错误,只需要删除就能解决。真是无语
更多推荐
已为社区贡献6条内容
所有评论(0)