mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-19 19:09:30 +08:00
fix
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import api from '@/api'
|
||||
import { FileItem, MediaDirectory } from '@/api/types'
|
||||
import FileBrowser from '@/components/FileBrowser.vue'
|
||||
import store from '@/store'
|
||||
|
||||
const endpoints = {
|
||||
list: {
|
||||
@@ -30,6 +31,11 @@ const endpoints = {
|
||||
},
|
||||
}
|
||||
|
||||
const user_level = store.state.auth.level
|
||||
|
||||
// 用户存储
|
||||
const userStorage = user_level > 1 ? 'local,aliyun,u115' : 'local'
|
||||
|
||||
// 当前目录
|
||||
const path = ref<string>('')
|
||||
|
||||
@@ -112,7 +118,7 @@ onBeforeMount(loadDownloadDirectories)
|
||||
<template>
|
||||
<div>
|
||||
<FileBrowser
|
||||
storages="local,aliyun,u115"
|
||||
:storages="userStorage"
|
||||
:tree="false"
|
||||
:path="path"
|
||||
:fileid="fileid"
|
||||
|
||||
Reference in New Issue
Block a user