Vue-router: add params to the router.back()

Created on 13 Jul 2017  路  1Comment  路  Source: vuejs/vue-router

What problem does this feature solve?

This features is very userful!

I have a common page to receive user input锛宎ny other page call the page to receive the user input.
Now I cant`t pass the user input to the router.back()...

What does the proposed API look like?

page1 page2

page2.router.back({data:'xxx'})

page1.routeBackReceive((data) => {
console.log(data) //console log:{data:'xxx'}
})

>All comments

use push instead to _set data_ (using params and queries) because it's like doing a new navigation

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saman picture saman  路  3Comments

yyx990803 picture yyx990803  路  3Comments

shinygang picture shinygang  路  3Comments

sqal picture sqal  路  3Comments

Atinux picture Atinux  路  3Comments