[Vuejs]-Vue-router does not show component on page

0👍

I change path in my vue route and components show on index page. On application index page I come from laravel router. So I change path to index page in vue router on name same in laravel route

My laravel router

Route::get('/tobyten', function () {
        return view('tobyten.index');
    })->name('tobyten');

My vue router

const router= new VueRouter({
    mode: "history",
    routes:[
        {
            path:"/tobyten",
            components: {
                default: bodyComponent,
            }
        }
    ]
})

Leave a comment