fix: 修复bug

pull/16/head^2
TianYu 2023-06-08 17:29:04 +08:00
parent da123b99f5
commit d67b6bd8a1
1 changed files with 3 additions and 2 deletions

View File

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