docs: 将仓库代码注释统一为中文
This commit is contained in:
@@ -77,7 +77,7 @@ export const useWorkspaceStore = defineStore('workspace', () => {
|
||||
collect(fileTree.value)
|
||||
const restore = (nodes: FileNode[]) => nodes.forEach(node => { if (node.type === 'folder') node.is_open = open.get(node.path) ?? false; if (node.children) restore(node.children) })
|
||||
restore(fresh)
|
||||
// Avoid redrawing an unchanged tree on every background check.
|
||||
// 避免在每次背景检查时重绘未更改的树。
|
||||
if (JSON.stringify(fresh) !== JSON.stringify(fileTree.value)) fileTree.value = fresh
|
||||
treeRefreshError.value = null
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user