1👍
Don’t use (it’s only for External redirects):
Inertia::location()
use:
to_route('pdf-chat', ['chat' => $chat->hash, 'pdf' => $pdf->hash])
0👍
Instead of using Axios to make the request, use Inertia’s router.visit
or one of their helpers like router.get
. These will intercept the request and know how to handle the response.
See https://inertiajs.com/manual-visits
router.visit('/pdf-chat/create-chat', {
method: 'get',
data: {
name: name.value,
pdfId: id
}
})
- [Vuejs]-Vue CLI generates empty body with error: Cannot find element: #app after migration vuecli 2>3
- [Vuejs]-How to set vue data to the value of a form?
Source:stackexchange.com