Reputation: 650
I'm getting started with vue-router
. Using express
as server, but I found router don't work. The default page is
,
when I change the view, it just show the orginal view, like this
.
if I restart the server, the view is work,
,
but I can't get default page. This my project's address: modern-java-web-scaffold. Is there something wrong with me? Thanks in advance.
Upvotes: 0
Views: 808
Reputation: 74
I noticed that in your server.js you had no calls to the express router. These are needed, as Vue-router only connects to your vue components. This may be part of your problem.
Upvotes: 1