【问题标题】:Strapi Nested Components UI, data not visible, issueStrapi 嵌套组件 UI,数据不可见,问题
【发布时间】:2023-01-04 15:46:29
【问题描述】:

如果制作的组件嵌套到第三层,有什么办法可以在 strapi 的 UI 中查看数据,这样我就可以只在那里进行更改,而不必一直去数据库进行数据更改。The image shows a link components wihich has three three files inside it and the component itself is wrapped under a component which is again wrapped into another one and so on...it has the data in it but is not visible in the UI987654321@

我尝试联系社区,但如果有人通过 itslef 找到解决方案,请提供帮助,因为我们现在处于生产级别,这个 cms 将由现在不知道数据库是什么的非技术人员使用...

【问题讨论】:

  • 请阐明您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: database user-interface nested strapi invisible


【解决方案1】:

如果您能够添加深度超过 2 层的数据,并且您面临的唯一问题是您在 API 响应中看不到嵌套的 JSON,我建议您看一下

https://www.npmjs.com/package/strapi-plugin-populate-deep

正确安装后,您只需使用即可,如下所示:

使用默认的最大深度填充请求。

/api/articles?populate=deep

使用自定义深度填充请求

/api/articles?populate=deep,10

使用自定义深度和过滤器填充请求

/api/articles/1?populate=deep,10

【讨论】:

    猜你喜欢
    • 2011-08-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-25
    • 2021-10-16
    • 2022-07-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多