Replies: 1 comment 2 replies
-
|
确实没注意 后续优化一下 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel模型关联,根据规范来说都会使用驼峰命名法,然而返回数据给前端时会自动转为蛇形命名法。这时候owl-admin列表自动处理关联数据时就会有问题了,正如下图所示,我有个上级用户




fromUser的关联,列表的TableColumn的name需对应fromUser才会自动处理关联数据,然而返回给前端时,fromUser变成了from_user,这时候就导致列表无法找到对应的字段。Beta Was this translation helpful? Give feedback.
All reactions