lavenderx
lavenderx

Reputation: 650

vue-router not work with express

I'm getting started with vue-router. Using express as server, but I found router don't work. The default page is qq 20160218103211, when I change the view, it just show the orginal view, like this qq 20160218103511. if I restart the server, the view is work, qq 20160218103356, 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

Answers (1)

sanjivchristopher
sanjivchristopher

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

Related Questions