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) }