This commit is contained in:
j3d1 2023-05-13 18:51:53 +02:00
parent 6c65da0882
commit b614891816
2 changed files with 3 additions and 3 deletions

View file

@ -32,8 +32,8 @@ export default {
} }
}, },
mounted() { mounted() {
console.log(this.$route) //console.log(this.$route)
console.log(this.$route.params.query) //console.log(this.$route.params.query)
this.query = decodeURIComponent(this.$route.params.query || encodeURIComponent("")); this.query = decodeURIComponent(this.$route.params.query || encodeURIComponent(""));
} }
} }

View file

@ -116,7 +116,7 @@ export default {
try { try {
const servers = await this.getFriends().then(friends => friends.map(friend => this.getFriendServer({username: friend}))) const servers = await this.getFriends().then(friends => friends.map(friend => this.getFriendServer({username: friend})))
const urls = servers.map(server => server.then(s => { const urls = servers.map(server => server.then(s => {
return {host: `http://${s}`, target: "/api/inventory_items/"} return {host: s, target: "/api/inventory_items/"}
})) }))
urls.map(url => url.then(u => this.apiFederatedGet(u).then(items => { urls.map(url => url.then(u => this.apiFederatedGet(u).then(items => {
this.setInventoryItems({url: u.domain, items}) this.setInventoryItems({url: u.domain, items})