Forum

vue-router changes ...
 
Notifications
Clear all

vue-router changes URL but not page

1 Posty
1 Users
0 Reactions
497 Widok
0
Topic starter

how to fix it

1 Answer
0
Topic starter

possible approach is to add

:key="$route.path"

example:

<router-view :key="$route.path"></router-view>

and another approach using methon @click=""

async openNewSentencePage() {
await this.$router.push({path: "/sentences/new"});
this.$router.go(0)
}

 

This post was modified 2 lata temu 2 times by mrmucha

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: