Level 104
In the app.js file where you create the Inertia app, you can mixin the route function from the window Object:
let app = createInertiaApp({
resolve: name => {
// ...
},
setup({el, App, props, plugin}) {
createApp({render: () => h(App, props)})
.use(plugin)
.mixin({methods: {route: window.route}})
.mount(el)
// ...
Now, it should be available to your Vue components.