vuejs / vue-hackernews-2.0

HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
MIT License
10.96k stars 2.15k forks source link

Routing does not work #358

Closed SkipTyler closed 5 years ago

SkipTyler commented 5 years ago

Hey. I took this configuration for learning ssr

I didn’t do a lot for myself, and after stopped working

Works if the link leads to the root component.

The same problem with browser buttons "forward" and "back"

Url is changing, but the content on the page is not.

Where did I make a mistake?

There is a repo.

UPD If I remove asyncData() from the src/views/posts.vue component, then the routing works.

didagu commented 5 years ago

The link to the repo is invalid