Appearance
保存并恢复
¥Save & Restore
没有内置的持久存储功能,但你可以使用自己的存储实现。
¥There is no built-in persistent storage feature, however you can use your own storage implementation.
状态管理库
查看 pinia 示例,了解如何将 Vue Flow 与状态管理库结合使用。
¥Check the pinia example to see how to use Vue Flow with a state management library.
本示例演示了如何使用浏览器的 LocalStorage
实现保存和恢复功能。
¥This example demonstrates save & restore functionality using the LocalStorage
of the browser.
你可以随意扩展这个基本思路,例如,获取数据并将其转换为元素,然后传递给 Vue Flow 或你想要处理的其他业务逻辑。
¥You can extend on this basic idea however you like, i.e. fetch data that you transform into elements which are then passed to Vue Flow or some other business logic you would like to handle.