Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据无法保存 #31

Closed
hardlove opened this issue Jan 16, 2023 · 3 comments
Closed

数据无法保存 #31

hardlove opened this issue Jan 16, 2023 · 3 comments

Comments

@hardlove
Copy link

请问数据改如何序列化成json数据存储起来呢?使用Gson序列化直接报错

@guaishouN
Copy link
Owner

这个问题在考虑要不要改,因为觉得这块功能超出了只做显示的初衷

@hardlove
Copy link
Author

目前有没有什么方案可以把数据存储起来呢?毕竟用户辛辛苦苦的把导图创建好了,如果不能保持就没多大意义了

@hardlove
Copy link
Author

改用fastjson来序列化没问题
val json = JSON.toJSONString(adapter.treeModel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants