Laravel VueJs : `router-view` does not render the component

后端 未结 2 1868
悲&欢浪女
悲&欢浪女 2020-11-30 16:10

I know such questions are out there in this site but they do not solve my problem. Hence this question pops up here :

In my Laravel 5.3 and VueJs ap

2条回答
  •  悲&欢浪女
    2020-11-30 16:29

    You need to declare your base path in touter config like this :

    export default new VueRouter({
      mode:'history',
      routes:[
    
        { path: '/:listing', component: ListingPage, name: 'listing' }
      ],
      base:'/listing',
      root:'/',
    
    });
    

提交回复
热议问题