返回顶部

vue——报错:Cannot read property '__ob__' of undefined

我的原因:引入组件后未注册

<script>
  import ComFirst from "../../components/ComFirst.vue"
  import ComSecond from "../../components/ComSecond.vue"

  export default {
    name: 'VueFirst',
    data() {
      return {}
    },
    components: {   //<<这一步未做
      ComFirst,
      ComSecond
    },
  }
</script>
posted @ 2019-10-31 11:56  前端-xyq  阅读(943)  评论(0编辑  收藏  举报