Skip to content

保存并恢复

🌐 Save & Restore

没有内置的持久存储功能,但你可以使用自己的存储实现。

🌐 There is no built-in persistent storage feature, however you can use your own storage implementation.

状态管理库

查看 pinia 示例,了解如何将 Vue Flow 与状态管理库一起使用。

此示例演示了如何使用浏览器的 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.

VueFlow 中文网 - 粤ICP备13048890号