Skip to content

Commit

Permalink
fix FileList.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 21, 2024
1 parent 7da21f2 commit 4d1b520
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/filebrowser/FileList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ const dirs = computed(() => items.value.filter(item => item.type === 'dir' && it
// 文件过滤
const files = computed(() => items.value.filter(item => item.type === 'file' && item.name.includes(filter.value)))
// 是否目录
const isDir = computed(() => inProps.item.path?.endsWith('/'))
// 是否文件
const isFile = computed(() => !isDir.value)
const isFile = computed(() => inProps.item.type == 'file')
// 是否目录
const isDir = computed(() => !isFile.value)
// 需要整理的文件项
const transferItems = ref<FileItem[]>([])
Expand Down

0 comments on commit 4d1b520

Please sign in to comment.