Strapi API 无法检索数据

Bac*_*tan 2 node.js strapi

我在 Strapi 中有一个名为movie的集合,其中有 24 个数据。 电影收藏 但是通过 API 检索电影数据后,我只得到 0 行数据,我确定端点状态为 200 并且没有错误。

我使用默认控制器 Strapi 4,没有任何定制。 在此输入图像描述

Bac*_*tan 8

该死的..卡住了几个小时后,终于我解决了这个问题。我知道 Strapi 4 在ContentType-Builder上做了额外的设置。在ContentType Builder->高级设置中,刚刚禁用/关闭草稿/发布功能。