vue异步axios获取的数据怎样渲染到页面

咱们在vue,数据不少事异步获取来的,若是在template直接使用,会报错,undefined。 由于先渲染后获得的数据,那如何才能不报错呢? computed!!! 举个例子 index.vue 忽略坑人的传参方式。。。javascript created(){ this.init() this.axios.post('/wanwei/appserver/eqInfo/eqBa
相关文章
相关标签/搜索