[英]How to map Json response in QUASAR
我需要使用 quasar 和 vue3 获取所有人的姓名。
我需要获取所有人的数据,但我只能获取第一个对象字段,例如row.persons[0].name
。
Quasar 列数据:
{
name: "personName",
label: "Name",
field: rows => rows.persons.name, //here that I can't return both person content
sortable: true,
align: "center",
},
json响应
{
"id": 4291,
"persons": [
{
"id": 12485,
"name": "",
"email": "",
},
{
"id": 21898,
"name": "",
"email": "",
}
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.