KeystoneJS:管理界面中的关系未更新 [英] KeystoneJS: Relationships in Admin UI not updating

查看:70
本文介绍了KeystoneJS:管理界面中的关系未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在自定义KeystoneJS,但遇到一个问题,看来我的管理界面中的关系列表无法更新.

I am customizing KeystoneJS and I have run into an issue where it seems the relationship lists in my Admin UI have failed to update.

具体来说,我正在查看具有Post.categories字段中定义的关系的默认Post and Post Categories模型.如果添加类别,则在创建或编辑帖子时不会将其显示为选项.

Specifically, I am looking at the default Post and Post Categories models with a relationship defined on the Post.categories field. If I add a category, it does not show up as an option for when creating or editing a Post.

是否会进行某种数据缓存?有没有人看过这个问题,我没有看到任何错误,我可以确认类别已在MongoDB中创建,并且前端可以很好地查看和显示类别.

Could there be some kind of data caching going on? Has anyone seen this issue, I am not seeing any errors and I can confirm the category has been created in MongoDB and the front-end can see and display the category just fine.

谢谢

推荐答案

这是Keystone v0.3中的错误.如果您转到以下链接

This is a bug in the v0.3 of Keystone. If you go to the following link

它告诉您需要更新到v4.0.

It tells you that you need to update to v4.0.

这篇关于KeystoneJS:管理界面中的关系未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆