problem description
when vue router jumps to a page, it occasionally returns to routing when a new window is opened. This problem only occurs after packaging and release
.Project is built with vue-cli3.0
the environmental background of the problems and what methods you have tried
Today, when you work on a project, you need to open a new window and find that you will occasionally return to follow the route. After that, you will write a very simple demo discovery that will indeed trigger
.related codes
/ / Please paste the code text below (do not replace the code with pictures)
< template >
<a href="-sharp/filter"
target="_blank">filter</a>
<router-link to="/filter"
target="_blank">
router-link</router-link>
< / div >
< / template >
< script >
export default {
data () {
return {}
}
}
< / script >
< style >
< / style >
router.js is also a very simple thing
what result do you expect? What is the error message actually seen?
normally, you should jump to xxx/filter. The implementation is xxx/
.add
found that hooks such as beforeRouteEnter will not trigger