fix: array to string result in comma
This commit is contained in:
parent
ff712358cf
commit
80f1ead5d0
1 changed files with 4 additions and 1 deletions
|
|
@ -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<{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue