拦截路由

This commit is contained in:
高嵩
2023-07-17 20:15:09 +08:00
parent 7f11dd8eb2
commit d5eb45f8b1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ export default {
},
methods: {
closeWindow(){
hwh5.close()
// hwh5.close()
this.$router.go(-2)
}
}
}
+1 -1
View File
@@ -4466,7 +4466,7 @@ Router.prototype.push = function push (location) {
const router = new Router({
routes,
mode: 'history', // default: hash ,history
mode: 'hash', // default: hash ,history
scrollBehavior (to, from, savedPosition) {
if (savedPosition) {
return savedPosition