我当时出错一直 赋值不了给数组 一直报错
this 指向不对
this指向的是ajax里面的 改成箭头函数就好了
function(){}里面的this是局部的
改成这样
created:function(){
console.log("1");
this.$ajax.get("/category/list_category?pageNum="+this.current+"&pageSize=10").then(response=>{
console.log(response);
this.rows=response.data.rows;
this.records=response.data.records;
console.log(this.rows);
})
},