从缓存中获取corpId和suitId
This commit is contained in:
@@ -178,7 +178,7 @@ export const wxwork = {
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
agentSign({state, commit}, params) {
|
||||
agentSign({state, commit}, params = {}) {
|
||||
//授权jssdk在url上使用,并获取corpId
|
||||
let url = window.location.href
|
||||
if (state.agentSignURL == url && state.config.corpId) {
|
||||
@@ -342,6 +342,8 @@ export const wxwork = {
|
||||
})
|
||||
},
|
||||
initOpenData({dispatch, commit, state}, params = {}) {
|
||||
const {corpId, suitId} = state.config
|
||||
params = {corpId, suitId, ...params}
|
||||
const loadSdk = (count = 0) => {
|
||||
if (!!window?.WWOpenData) {
|
||||
const canvas = params?.canvas
|
||||
|
||||
Reference in New Issue
Block a user