1***@163.com
1***@163.com
  • 发布:2025-07-22 09:46
  • 更新:2025-07-22 09:46
  • 阅读:40

schema2code 多维数组怎么编写schema

分类:uniCloud

数据表中有个字段data存储多维不固定的数组对象,比如:[ { "weight": 1, "ratio": 1, "ratio2": 1, "label": "1:1", "value": { "ratio": "1:1" } }, { "weight": 2, "ratio": 16, "ratio2": 9, "label": "16:9", "value": { "ratio": "16:9" } }, { "weight": 3, "ratio": 4, "ratio2": 3, "label": "4:3", "value": { "ratio": "4:3" } }, { "weight": 4, "ratio": 21, "ratio2": 9, "label": "21:9", "value": { "ratio": "21:9" } }, { "weight": 5, "ratio": 9, "ratio2": 16, "label": "9:16", "value": { "ratio": "9:16" } }, { "weight": 6, "ratio": 3, "ratio2": 4, "label": "3:4", "value": { "ratio": "3:4" } } ],想把数据在uni_admin后台添加进去,这个data字段是存储string、array、object哪个类型啊?存string类型,点击保存的时候说格式不正确,设置array和object也说格式不正确,就是想从后台把这个不固定的数组对象存到data字段里面,大神们帮忙解决一下,谢谢了。

2025-07-22 09:46 负责人:DCloud_uni-ad_HDX 分享
已邀请:

要回复问题请先登录注册