diff --git a/src/App.vue b/src/App.vue index 7c54362f..27521f7f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,8 +21,13 @@ export default { methods: { ...mapMutations(['initWaterMarker', 'logout', 'getConfig']), goto(params) { - let {path} = this.$route - this.$router.push({path, ...params}) + let {path: url, query: {app}} = this.$route + params.query = {app, ...(params.query || {})} + uni.navigateTo({ + url, success: () => { + this.$router.push({...params}) + } + }) } }, }