mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-16 19:37:35 +08:00
fix
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
<script lang="ts" setup>
|
||||
import api from '@/api'
|
||||
import FileBrowser from '@/components/FileBrowser.vue'
|
||||
|
||||
const initPath = ref('/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' },
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<FileBrowser storages="local" tree="true" path="/Users/jxxghp/Downloads/public" />
|
||||
<FileBrowser storages="local" tree="true" :path="initPath" :endpoints="endpoints" :axios="api" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user