fix(frontend): 防止切换文件丢稿并修复主题恢复

This commit is contained in:
2026-08-30 00:14:10 +08:00
parent a7772430d5
commit 0dbd32a757
7 changed files with 44 additions and 20 deletions
+1 -1
View File
@@ -23,8 +23,8 @@ function submitSearch() {
}
async function openResult(result: SearchResult) {
workspaceStore.openFile(result.file_path)
await editorStore.loadFile(result.file_path)
workspaceStore.openFile(result.file_path)
editorStore.highlightBlock(result.block_id)
await router.push('/workspace')
}