diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index 6d05c9f..ee6d2b8 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -63,7 +63,9 @@ function constructUrl(path: string | string[], append = true) { } function consistantPath(path: string | string[]) { - return path.toString().split('/').filter(Boolean).join('/') + '/' + return Array.isArray(path) + ? path.join('/') + '/' + : path.split('/').filter(Boolean).join('/') + '/' } const useStorage = defineStore('storageStore', () => { @@ -116,6 +118,7 @@ const useStorage = defineStore('storageStore', () => { } }) + console.log(structure, folder.value, file.value) return structure }) const currentInfo = reactive<{