Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
feat: alter root behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Aug 6, 2023
1 parent 5e22f68 commit 9ef64fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { fs } from '@/data/fs'
import TaskEdit from '@/components/TaskEdit.vue'
import TaskTree from '@/components/TaskTree.vue'
const expands = ref<string[]>(['root.'])
const expands = ref<string[]>(['/'])
onMounted(async () => {
await loadFS()
Expand Down
2 changes: 1 addition & 1 deletion src/components/TaskTreeRender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function renderLabel({ option }: { option: TreeOption }) {
}
}
} else {
return <span>{option.label}</span>
return <span>{option.key === '/' ? '[ROOT]' : option.label}</span>
}
}

Expand Down

0 comments on commit 9ef64fd

Please sign in to comment.