feat: 优化文件管理器插件文件展示排序
This commit is contained in:
1 parent
cb8198d1bb
commit
938269bd9f
2 files changed
+2
-4
No files matched your search
@@ -318,8 +318,6 @@ export class VirtualRemoteDirectory extends VirtualDirectoryBase {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(this.parent, targetDir, this)
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { response } = miaoFetchApi.copy(this, targetDir);
|
const { response } = miaoFetchApi.copy(this, targetDir);
|
||||||
const id = (await response).eventId;
|
const id = (await response).eventId;
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ const showData_directory = computed<VirtualDirectory[]>(() => {
|
|||||||
if (searchText.value !== '') {
|
if (searchText.value !== '') {
|
||||||
data = data.filter((vd) => vd.name.includes(searchText.value))
|
data = data.filter((vd) => vd.name.includes(searchText.value))
|
||||||
}
|
}
|
||||||
return data
|
return data.sort((a, b) => a.name.localeCompare(b.name))
|
||||||
})
|
})
|
||||||
const showData_files = computed<VirtualFile[]>(() => {
|
const showData_files = computed<VirtualFile[]>(() => {
|
||||||
if (showFiles.value === false) {
|
if (showFiles.value === false) {
|
||||||
@@ -184,7 +184,7 @@ const showData_files = computed<VirtualFile[]>(() => {
|
|||||||
if (searchText.value !== '') {
|
if (searchText.value !== '') {
|
||||||
data = data.filter((vd) => vd.name.includes(searchText.value))
|
data = data.filter((vd) => vd.name.includes(searchText.value))
|
||||||
}
|
}
|
||||||
return data
|
return data.sort((a, b) => a.name.localeCompare(b.name))
|
||||||
})
|
})
|
||||||
|
|
||||||
const topBarMenuOption = computed(() => {
|
const topBarMenuOption = computed(() => {
|
||||||
|
|||||||
Reference in new issue
Block a user