持久化导入导出支持

This commit is contained in:
2025-07-09 14:39:34 +08:00
parent 7d07e98e76
commit 6f5a1304a6
4 changed files with 213 additions and 27 deletions

View File

@@ -27,7 +27,7 @@ const flowEditorRefs = ref({});
const lastActiveFile = ref(filesStore.activeFile);
const handleTabsEdit = (
targetName: String | undefined,
targetName: string | undefined,
action: 'remove' | 'add'
) => {
if (action === 'remove') {
@@ -60,6 +60,9 @@ onMounted(() => {
window.addEventListener('resize', () => {
windowHeight.value = window.innerHeight;
});
// 初始化自动保存功能
filesStore.initializeWithPrompt();
filesStore.setupAutoSave();
});
onUnmounted(() => {