async getList() {
this.listLoading = true
const { data } = await fetchList(this.listQuery)
const items = data.items
this.list = items.map(v => {
this.$set(v, 'edit', false) // https://vuejs.org/v2/guide/reactivity.html
v.originalTitle = v.title // will be used when user click the cancel botton
return v
})
this.listLoading = false
},
vue添加后端接口里不存在的字段
最新推荐文章于 2023-05-09 19:00:50 发布