Slugy, webp, hromada refaktoringu
This commit is contained in:
@@ -3,7 +3,10 @@ import {useFlightsStore} from "stores/Flights";
|
||||
|
||||
export default {
|
||||
preFetch({store, currentRoute}) {
|
||||
return useFlightsStore(store).fetchPublicDetail(currentRoute.params.id, currentRoute.params.username)
|
||||
return useFlightsStore(store).fetchPublicDetail({
|
||||
urlSlug: currentRoute.params.flightSlug,
|
||||
username: currentRoute.params.username
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user