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

@@ -77,6 +77,7 @@ export default {
}) })
}, },
methods: { methods: {
...mapActions(['injectJWeixin']),
emitReachBottom() { emitReachBottom() {
this.current = this.current + 1; this.current = this.current + 1;
this.getList() this.getList()

View File

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