From 13e0c724a4f48a6ce0c47470f566f2314bc72901 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 23 Nov 2021 09:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=A1=B5=E9=9D=A2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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}) + } + }) } }, }