refine inline edit table example

This commit is contained in:
Pan 2017-08-24 14:41:01 +08:00 committed by 花裤衩
parent 3c05519a09
commit b98860ace1
1 changed files with 3 additions and 2 deletions

View File

@ -83,8 +83,9 @@ export default {
getList() { getList() {
this.listLoading = true this.listLoading = true
fetchList(this.listQuery).then(response => { fetchList(this.listQuery).then(response => {
this.list = response.data.items.map(v => { const items = response.data.items
v.edit = false this.list = items.map(v => {
this.$set(v, 'edit', false)
return v return v
}) })
this.listLoading = false this.listLoading = false