vuejs / vue-router

🚦 The official router for Vue 2
http://v3.router.vuejs.org/
MIT License
18.99k stars 5.06k forks source link

bug: vue-router2.0 integrate with vue2.0 and vuex2.0 ,router.push(path) twice can not call watch $route function #736

Closed lenvonsam closed 7 years ago

lenvonsam commented 7 years ago

first part router config: 1 second part App.vue watch $route code 2 third part sidebar component router-link to each view: 3

4

when i refresh page or click the router-link the first time ,everything is ok ,and watch $route can call its bind function,but when click A -> B, B->A ,in this case , the app.vue watch $route can not call its bind function , how to resolve this problem , i am grateful for you very much.

posva commented 7 years ago

Please, ask questions on the forum or StackOverflow.

Also, include real code instead of screenshots, even better create a little demo. You can use this as a starting point (https://jsfiddle.net/posva/wtpuevc6/). That way people is more likely to help you.

If it turns out you actually found a bug, come back here and open an issue with a repro (link to a jsfiddle)

lenvonsam commented 7 years ago

@posva Thank for your advice.I spent two days resolving this problem which raised by jquery datatable erorr , thanks god&best wish