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

@@ -12,17 +12,12 @@ const props = defineProps({
storages: String,
storage: String,
path: String,
tree: String,
tree: Boolean,
endpoints: Object as PropType<EndPoints>,
axios: Object as PropType<Axios>,
axiosconfig: Object,
})
// 事件f
const emit = defineEmits(['change'])
console.log('FileBrowser Init Path', props.path)
const availableStorages = [
{
name: '本地',
@@ -53,14 +48,14 @@ const fileIcons = {
other: 'mdi-file-outline',
}
// 加载次数
const loading = ref(0)
// 当前路径
const path = ref(props.path)
// 加载次数
const loading = ref(0)
// 当前存储
const activeStorage = ref('local')
// 刷新
const refreshPending = ref(true)
const refreshPending = ref(false)
// axios实例
const axiosInstance = ref<Axios>()
@@ -84,8 +79,6 @@ function storageChanged(storage: string) {
function pathChanged(_path: string) {
path.value = _path
console.log('Browser changePath', path.value)
emit('change', path)
}
// 初始化