同步页面跳转

This commit is contained in:
aixianling
2021-11-23 09:07:37 +08:00
parent 6e19161fe2
commit 13e0c724a4

View File

@@ -21,8 +21,13 @@ export default {
methods: { methods: {
...mapMutations(['initWaterMarker', 'logout', 'getConfig']), ...mapMutations(['initWaterMarker', 'logout', 'getConfig']),
goto(params) { goto(params) {
let {path} = this.$route let {path: url, query: {app}} = this.$route
this.$router.push({path, ...params}) params.query = {app, ...(params.query || {})}
uni.navigateTo({
url, success: () => {
this.$router.push({...params})
}
})
} }
}, },
} }