mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-09 01:36:45 +08:00
add storage type
This commit is contained in:
@@ -36,6 +36,11 @@ const availableStorages = [
|
|||||||
code: 'aliyun',
|
code: 'aliyun',
|
||||||
icon: 'mdi-cloud-outline',
|
icon: 'mdi-cloud-outline',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: '115网盘',
|
||||||
|
code: 'u115',
|
||||||
|
icon: 'mdi-cloud-outline',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const fileIcons = {
|
const fileIcons = {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const treeItems = ref<FileItem[]>([
|
|||||||
// 拉取子目录
|
// 拉取子目录
|
||||||
async function fetchDirs(item: any) {
|
async function fetchDirs(item: any) {
|
||||||
return api
|
return api
|
||||||
.get('/filebrowser/local/listdir?path=' + item.path)
|
.get('/local/listdir?path=' + item.path)
|
||||||
.then((data: any) => {
|
.then((data: any) => {
|
||||||
item.children.push(...data)
|
item.children.push(...data)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user