fix aliyunpan ui

This commit is contained in:
jxxghp
2024-06-18 12:01:38 +08:00
parent 9e9e940dfd
commit e003b6f9a7
4 changed files with 12 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import FileBrowser from '@/components/FileBrowser.vue'
const endpoints = {
list: {
url: '/filebrowser/{storage}/list?path={path}&sort={sort}&fileid={fileid}',
url: '/filebrowser/{storage}/list?path={path}&sort={sort}&fileid={fileid}&filetype={filetype}',
method: 'get',
},
mkdir: {
@@ -25,7 +25,7 @@ const endpoints = {
method: 'get',
},
rename: {
url: '/filebrowser/{storage}/rename?path={path}&new_name={newname}&fileid={fileid}',
url: '/filebrowser/{storage}/rename?path={path}&new_name={newname}&fileid={fileid}&filetype={filetype}',
method: 'get',
},
}
@@ -93,6 +93,7 @@ async function loadDownloadDirectories() {
function pathChanged(item: FileItem) {
path.value = item.path
fileid.value = item.fileid
if (item.fileid == 'root') return
if (fileidstack.value.includes(item.fileid)) {
fileidstack.value = fileidstack.value.slice(0, fileidstack.value.indexOf(item.fileid) + 1)
} else {