Vuejs2 VueJs路由器链路在Laravel中不工作

Vuejs2 VueJs路由器链路在Laravel中不工作,vuejs2,vue-router,Vuejs2,Vue Router,由于Laravel附带了VUEJ,所以决定尝试实现路由器链接 我在检查控制台时看到此错误: Unknown custom element: <router-link> - did you register the component correctly? For recursive components, make sure to provide the "name" option. 在我的app.blade模板(默认情况下随laravel提供的模板)上,我添加了以下内容: <

由于Laravel附带了VUEJ,所以决定尝试实现路由器链接

我在检查控制台时看到此错误:

Unknown custom element: <router-link> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
在我的app.blade模板(默认情况下随laravel提供的模板)上,我添加了以下内容:

<li>
     <router-link class="nav-link" :to="'/'">Home</router-link>
</li>
我的aap.blade文件我有组件

<div class="container">
    <articles></articles>
</div>

如何在laravel中使用路由


提前感谢

请将id作为“应用程序”提供给您的集装箱部门,如下所示:

<div class="container" id="app">
    <articles></articles>
</div>


请将id作为“应用程序”提供给您的集装箱部门,如下所示:

<div class="container" id="app">
    <articles></articles>
</div>


<div class="container" id="app">
    <articles></articles>
</div>