iview table 初始化为null问题

 

vue.min.js:6 TypeError: Cannot read property 'forEach' of null

vue.min.js:6 TypeError: Cannot read property 'length' of undefined

 

    <i-table v-bind:columns="tableColumns" v-bind:data="list" size="small" v-bind:loading="listLoading" v-bind:showPage="false" border></i-table>

data: function () {
  return {
    list: null, //list:[] 改为数组就不报错了。

 }

}

 

posted @ 2020-07-13 18:15  hao_1234_1234  阅读(825)  评论(0编辑  收藏  举报