This commit is contained in:
yanran200730
2021-12-08 20:57:59 +08:00
parent a2b527749d
commit 4512e9a910
2 changed files with 10 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import Vuex from 'vuex'
import perState from 'vuex-persistedstate'
import http from '../common/axios'
import CryptoJS from '../utils/crypto-js'
import qs from 'qs'
Vue.use(Vuex)
let agentSignURL = "", apiList = []
@@ -240,7 +241,14 @@ const store = new Vuex.Store({
return Promise.resolve()
} else {
agentSignURL = url
params = params || {corpId, suiteId}
console.log(qs.parse(location.search))
if (qs.parse(location.search)?.corpId) {
params = {
corpId: qs.parse(location.search).corpId
}
} else {
params = params || {corpId, suiteId}
}
return http.post("/app/wxcptp/portal/agentSign", null, {
params: {...params, url}
}).then(res => {