add storage type

This commit is contained in:
jxxghp
2024-06-19 07:12:35 +08:00
parent 1240899b08
commit 8d064a2165
2 changed files with 6 additions and 1 deletions

View File

@@ -36,6 +36,11 @@ const availableStorages = [
code: 'aliyun',
icon: 'mdi-cloud-outline',
},
{
name: '115网盘',
code: 'u115',
icon: 'mdi-cloud-outline',
},
]
const fileIcons = {

View File

@@ -40,7 +40,7 @@ const treeItems = ref<FileItem[]>([
// 拉取子目录
async function fetchDirs(item: any) {
return api
.get('/filebrowser/local/listdir?path=' + item.path)
.get('/local/listdir?path=' + item.path)
.then((data: any) => {
item.children.push(...data)
})