How the vue browser Refresh jumps to the specified page

how does the vue browser refresh jump to the specified page


Why refresh the jump?


record some page parameters in the routing query attribute, and refresh the page to jump according to the parameters.


No matter how you refresh, you can jump to the specified page with parameters. This is easy to implement. You can use storage to make necessary judgments


.

the description is too simple to know exactly what effect you want to achieve

you can use vue-router to jump to the page

this.$router.push({
    path: ''
});

Jump when you want to refresh, you can put this code in the corresponding hook, for example:

export default {
    created() {
        this.$router.push({
            path: ''
        });
    }
}

but it is not recommended that you do so. You can describe the problem in more detail so that people can help you solve it

Menu