fix: search missing path slash

This commit is contained in:
Ramires Viana 2020-10-19 13:14:36 +00:00
parent 5e27ba5c8c
commit 2bd163d92a
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@ export default async function search (base, query) {
data = data.map((item) => {
item.url = `/files${base}` + url.encodePath(item.path)
if (item.dir) {
item.url += '/'
}
return item
})