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:[] 改为数组就不报错了。
}
}
树立目标,保持活力,gogogo!