fix: search missing path slash
This commit is contained in:
parent
5e27ba5c8c
commit
2bd163d92a
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue