fix FileManager

This commit is contained in:
jxxghp
2023-08-26 14:30:51 +08:00
parent f4aef8f9dd
commit e3df4000bb
6 changed files with 58 additions and 59 deletions

View File

@@ -2,17 +2,18 @@
import api from '@/api'
import FileBrowser from '@/components/FileBrowser.vue'
const initPath = ref('/Users/jxxghp/Downloads/爱情生活 (2020)/')
const initPath = '/Users/jxxghp/Downloads/爱情生活 (2020)/'
const endpoints = {
list: { url: '/filebrowser/list?path={path}', method: 'get' },
mkdir: { url: '/filebrowser/mkdir?path={path}', method: 'get' },
delete: { url: '/filebrowser/delete?path={path}', method: 'get' },
download: { url: '/filebrowser/download?path={path}', method: 'get' },
}
</script>
<template>
<div>
<FileBrowser storages="local" tree="true" :path="initPath" :endpoints="endpoints" :axios="api" />
<FileBrowser storages="local" :tree="false" :path="initPath" :endpoints="endpoints" :axios="api" />
</div>
</template>