Problem with vue route redirection. Home- > a-> b, b fallback page a page is not refreshed. Every time home enters page a, the page is refreshed. I would like to ask how to achieve this.

home page
clipboard.png

a
b

b
clipboard.png

index

clipboard.png

but it has no effect. May I ask what went wrong

?
Mar.11,2021

you need the https://github.com/zack24q/vu.


Why does the departure hook of the b page routing guard set the keepalive of the arriving page to true
bind the created destroy activated deactived hook to page an and see if the output is keepalive


write a watch, listening route on page a (yours should be a list page):

    watch: {
        '$route' (to, from){
            if (xxx) {
                this.$router.push({name:'reload'})
            }
        }
    },
    ```
    hoemb.
Menu