问题:

Cannot read property 'toLowerCase' of undefined

原因:

全局注册组件

  • 在全局注册组件时采用遍历组件池的方法,此时,每个组件都应该具备name属性,否则会出现如标题的错误

    Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

解决:

在组件中加入name属性,标注组件名称

<script>
export default {
  name: 'TagsView',
  ...
}
</script>
Logo

前往低代码交流专区

更多推荐