路由内容未在 Vue-router 和 Laravel 中显示
本文介绍了路由内容未在 Vue-router 和 Laravel 中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遵循此 YT 教程,但我遵循了这些步骤似乎 ExampleComponent
没有显示.App.vue
显示但不显示路由.
这是我的代码:
app.js
router.js
App.vue
app.blade.php
web.php
提前致谢.
解决方案
将模式从 history
更改为 hash
因为这种情况下的历史模式保留给 Laravel 路由系统:
Im following this YT tutorial, I followed the steps but it seems that the ExampleComponent
does not show. The App.vue
shows but not the route.
Here are my code:
app.js
router.js
App.vue
app.blade.php
web.php
Thanks in advance.
解决方案
Change the mode from history
to hash
because the history mode in this case is reserved to Laravel routing system :
这篇关于路由内容未在 Vue-router 和 Laravel 中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!