使用vue列表渲染組件不能更新,使用pid作為key,key是不同的。但是組件并沒有更新 <Row class="ivu-row" v-for="info in thisHostInfos" v-bind:key="info.pid"> ... </Row>在method中我更新了 thisHostInfos這個(gè)數(shù)組: reboot(host, pid) { axios.get("http://127.0.0.1:5000/reboot", { params: { host, pid } }).then(response => { this.thisHostInfos = response.data; this.$Notice.open({ title: "應(yīng)用重啟", desc: "重啟成功!" }); }).catch(function (error) { console.log(error); this.$Notice.open({ title: "應(yīng)用重啟", desc: "重啟失??!" }); }) }
vue列表渲染組件不能更新
蝴蝶不菲
2018-12-13 18:19:54