pages An and B, they can both jump to page C, C can jump to page D
A, B-> C-> D
now I am jumping back and forth between C and D, how to solve their order problem?
also, how to determine whether it is entered from An or B.
pages An and B, they can both jump to page C, C can jump to page D
A, B-> C-> D
now I am jumping back and forth between C and D, how to solve their order problem?
also, how to determine whether it is entered from An or B.
use the hook of the route to judge beforeEach
write the beforeRouterEnter hook in C, and judge from to know whether it is An or B
.Previous: How does Google SEO delete search results?
Next: How to inject real mapper objects when spring framework gives unit testing to service layer
<!doctype html> <html> <head> <meta charset="utf-8"> <title>< title> < head> <body style="height:2000px"> <div id="app"> <router-view>< router-view&...
problem description recently, the project needs to listen for changes in vue routes. it is said on the Internet to use hashchange to monitor, but ordinary jumps cannot be triggered, only backward and forward can be triggered. the environmental b...