我使用PUT命令成功更新了组件,之后 Strapi 抛出了错误:
错误:目标多态类型“components_COMPONENT_NAME”不是定义的目标类型之一
我用来更新 Strapi 组件的命令:
PUT http://localhost:1337/content-type-builder/components/COMPONENT_DIR.COMPONENT_NAME
{
"components": [],
"component": {
"category": "COMPONENT_DIR",
"icon": "biohazard",
"name": "COMPONENT_NAME",
"description": "",
"connection": "default",
"collectionName": "components_COMPONENT_DIR_COMPONENT_NAME",
"attributes": {
"type": {
"type": "string",
"default": ""
},
"uuid": {
"type": "string"
},
"title": {
"type": "text"
},
"description": {
"type": "text"
},
"banner_image": {
"type": "media",
"multiple": false
}
}
}
}
Run Code Online (Sandbox Code Playgroud) 我正在使用Strapi v3.0.0-beta.18.7
如何删除了的ContentType和DB相关的表?
我尝试了下面的命令,但它没有删除数据库表。
DELETE http://localhost:1337/content-type-builder/content-types/application::CONTENT_TYPE_NAME.CONTENT_TYPE_NAME
Run Code Online (Sandbox Code Playgroud) strapi ×2