拦截路由
This commit is contained in:
@@ -19,7 +19,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeWindow(){
|
closeWindow(){
|
||||||
hwh5.close()
|
// hwh5.close()
|
||||||
|
this.$router.go(-2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -4466,7 +4466,7 @@ Router.prototype.push = function push (location) {
|
|||||||
|
|
||||||
const router = new Router({
|
const router = new Router({
|
||||||
routes,
|
routes,
|
||||||
mode: 'history', // default: hash ,history
|
mode: 'hash', // default: hash ,history
|
||||||
scrollBehavior (to, from, savedPosition) {
|
scrollBehavior (to, from, savedPosition) {
|
||||||
if (savedPosition) {
|
if (savedPosition) {
|
||||||
return savedPosition
|
return savedPosition
|
||||||
|
|||||||
Reference in New Issue
Block a user