fix: regex

This commit is contained in:
Methapon2001 2023-12-15 12:05:59 +07:00
parent a64d93824f
commit ec1bc81b88
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -355,7 +355,7 @@ const useStorage = defineStore('storageStore', () => {
const arrayPath: string[] = path.split('/').filter(Boolean)
await api.post(`${import.meta.env.VITE_API_ENDPOINT}storage/folder`, {
path: arrayPath,
name: name.replace(/^./, ''),
name: name.replace(/^\./, ''),
})
}
loader.hide()