data(){
queryParams: {
pageSize: 9,
pageNum: 1,
},
},
methods:{
changePageNum(val) {
let query = {
pageNum: val,
};
this.queryParams = { ...this.queryParams, ...query };
},
}
不懂就问,各位大手子们: this.queryParams = { ...this.queryParams, ...query };这一行代表什么意思啊,
尤其是 { ...this.queryParams, ...query };