Vue-router uses go (- 1) fallback problem. Occasional fallback is invalid after the build is completed, and refresh is not triggered.

vue router uses go (- 1) fallback problem, which is invalid occasionally in the browser.
Project Information: vue single-page project, using "vue-router@ ^ 2.3.0" + "vue@ ^ 2.5.3" + "webpack@ ^ 3.10.0";
trigger logic: use this.$router.go (- 1) in the content page; Test browser chrome@67, 360 speed, most cases can return normally, but occasionally there is a problem of address change and no refresh after clicking back; this problem does not occur in the development work, but after the completion of the project construction. When
appears, using the return button that comes with the browser does not work properly.
I would like to ask you if you have any solutions or ideas.
Note: you can fall back normally with this.$router.push (), but it is difficult to deal with the return logic of a page with multiple entries.

Mar.28,2021

"vue-router": "^2.7.0"
"vue": "^2.4.2",
"webpack": "^2.6.1",


(this.to === undefined)?this.$router.go(-1):this.$router.push({path:this.to});
Menu