fix: search missing path slash
@@ -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
})
