Skip to content

Commit fabd58b

Browse files
committed
fix: 修复了本地存储管理未接入新的焦点系统的bug
1 parent bc84063 commit fabd58b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/composables/useProjectManager.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export function useProjectManager() {
4545
clipboardStore.copiedMessages.length > 0 ||
4646
filterTool.hasSelection.value ||
4747
historyStore.undoStack.length > 0 ||
48-
historyStore.redoStack.length > 0 ||
49-
uiStore.activeChunkId !== null
48+
historyStore.redoStack.length > 0
5049
);
5150
});
5251

@@ -93,9 +92,7 @@ export function useProjectManager() {
9392
clipboardStore.clearClipboard();
9493
filterTool.clearSelection();
9594
historyStore.clearHistory();
96-
97-
const firstChunk = project.documents[0]?.chunks[0];
98-
uiStore.setActiveChunk(firstChunk ? firstChunk.chunkId : null);
95+
uiStore.focusStack = [];
9996

10097
return true;
10198
}

0 commit comments

Comments
 (0)