我的页面和服务页面跳转方式修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2022-11-09 17:37:26 +08:00
parent 6cfc533f0d
commit 7b7c785e26
2 changed files with 22 additions and 2 deletions

View File

@@ -149,7 +149,16 @@ export default {
}, },
pageJump(data){ pageJump(data){
if(data.name != '设置'){ if(data.name != '设置'){
window.location.href = data.route let thisRoute = data.route.slice(data.route.lastIndexOf("/#")+2)
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#'+ thisRoute,
},
routerInfo: {
path: thisRoute,
},
})
}else{ }else{
this.$jump({ this.$jump({
flag: 'setting' flag: 'setting'

View File

@@ -132,7 +132,18 @@ export default {
}) })
}, },
pageJump(data){ pageJump(data){
window.location.href = data.route let thisRoute = data.route.slice(data.route.lastIndexOf("/#")+2)
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#'+ thisRoute,
},
routerInfo: {
path: thisRoute,
},
})
// window.location.href = data.route
}, },
}, },
} }