getData() { this.$ajax.get('/api/commodityCategory/list') .then(response => { let list = response.data; this.tag1 = list; for(let i = 0;i < this.tag1.length;i++){ this.tag1[i].visible1 = 'false'; } console.log(this.tag1); console.log(response.data.data); }) .catch(function(response) { console.log(response); }); }在create中執(zhí)行g(shù)etData方法后數(shù)據(jù)中的visible1并沒有改變,怎么解決
vue在create中獲取數(shù)據(jù)后更改數(shù)據(jù)
DIEA
2019-02-26 18:15:48