【发布时间】:2021-06-23 07:00:00
【问题描述】:
系统信息
- Strapi 版本3.
- 操作系统:MacOs Big Sur
- 数据库:MariaDB
- 节点版本:v14.17.0
- NPM 版本:6.14.13
- 纱线版本:1.22.5
大家好,我很难在 Nuxtjs API 中恢复 Strapi 表中的内容。
我想恢复以下位置的内容:location_id: 49
这是桌子:
[
{
id: 2,
title: 'Legal notice',
description: 'Hello',
date: '2021-06-01',
locale: 'fr-FR',
created_at: '2021-06-21T20:27:23.000Z',
updated_at: '2021-06-22T13:07:14.000Z',
location: {
id: 2,
name: 'toto',
location_id: 49,
locale: 'fr-FR',
created_at: '2021-06-21T20:30:31.000Z',
updated_at: '2021-06-21T20:33:44.000Z'
},
localizations: [ [Object] ]
},
{
id: 4,
title: 'Test cell',
description: 'csdcmsdml',
date: '2021-06-06',
locale: 'fr-FR',
created_at: '2021-06-22T14:10:29.000Z',
updated_at: '2021-06-22T14:10:29.000Z',
location: null,
localizations: [ [Object] ]
}
]
【问题讨论】: