修复异常
This commit is contained in:
@@ -59,7 +59,7 @@ export const config = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getCode({state, dispatch}, tryAgentSign = false) {
|
getCode({state, dispatch}, tryAgentSign = false) {
|
||||||
let {corpId} = state.config, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_base"
|
let {corpId} = state, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_base"
|
||||||
if (/\/AppForm\//.test(location.search)) {
|
if (/\/AppForm\//.test(location.search)) {
|
||||||
scope = "snsapi_userinfo"
|
scope = "snsapi_userinfo"
|
||||||
}
|
}
|
||||||
@@ -228,8 +228,8 @@ export const user = {
|
|||||||
let apiList = []
|
let apiList = []
|
||||||
export const wxwork = {
|
export const wxwork = {
|
||||||
actions: {
|
actions: {
|
||||||
injectJWeixin({commit, dispatch, state}, ops) {
|
injectJWeixin({commit, dispatch, rootState}, ops) {
|
||||||
const inject = (jsApiList, config = state.config) => new Promise((resolve, reject) => {
|
const inject = (jsApiList, config = rootState.config) => new Promise((resolve, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let sdk = wx?.agentConfig ? wx : jWeixin
|
let sdk = wx?.agentConfig ? wx : jWeixin
|
||||||
sdk?.agentConfig({
|
sdk?.agentConfig({
|
||||||
|
|||||||
Reference in New Issue
Block a user