From d67b6bd8a129f70fc521c2b1907e3230a56d8f42 Mon Sep 17 00:00:00 2001 From: TianYu <332368756@qq.com> Date: Thu, 8 Jun 2023 17:29:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/App.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yudao-ui-app/App.vue b/yudao-ui-app/App.vue index c0d173f45..578b1c5a6 100644 --- a/yudao-ui-app/App.vue +++ b/yudao-ui-app/App.vue @@ -176,6 +176,7 @@ } }, mounted() { + console.log('query--print', this.$route.query) this.initLoad() }, watch: { @@ -215,14 +216,14 @@ const spreadId = this.$route.query.spreadId || '' const isProperty = this.$route.query.isProperty || '' const wechatUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + WX_APP_ID + const url = encodeURIComponent(`${redirectUrl}${SPREAD_LINK}?tenantId=${tenantId}&spreadId=${spreadId}&isProperty=${isProperty}`) location.href = - `${wechatUrl}&redirect_uri=${redirectUrl}${SPREAD_LINK}?tenantId=${tenantId}&spreadId=${spreadId}&isProperty=${isProperty}&response_type=code&scope=snsapi_base#wechat_redirect` + `${wechatUrl}&redirect_uri=${url}&response_type=code&scope=snsapi_base#wechat_redirect` } }, // 是否扫物业二维码 isProperty() { const is_property = this.$route.query.isProperty || '0' - console.log('is_property', is_property) if(parseInt(is_property) === 1){ this.$store.commit("SET_IS_PROPERTY", !!is_property) }