修复BUG

This commit is contained in:
aixianling
2022-12-29 17:08:35 +08:00
parent 9146bdfbac
commit 7a84258622

View File

@@ -275,7 +275,7 @@ export const wxwork = {
}, },
getCode({state, dispatch}, params) { getCode({state, dispatch}, params) {
const excute = (tryAgentSign = false) => { const excute = (tryAgentSign = false) => {
if (!params.appid) { if (!params?.appid) {
let {corpid: corpId, suiteId, agentid} = state.config, scope = "snsapi_privateinfo" let {corpid: corpId, suiteId, agentid} = state.config, scope = "snsapi_privateinfo"
if (/AppForm/.test(location.pathname)) { if (/AppForm/.test(location.pathname)) {
scope = "snsapi_base" scope = "snsapi_base"