调整切换系统中间出现的问题

This commit is contained in:
aixianling
2022-02-09 15:49:00 +08:00
parent cb178908cc
commit 78e1eb4df4
2 changed files with 1 additions and 265 deletions

View File

@@ -3,7 +3,6 @@ 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 = []
@@ -234,8 +233,7 @@ const store = new Vuex.Store({
}
},
agentSign(state, params) {
let url = window.location.href,
{corpId, suiteId} = state.state.config
let url = window.location.href
if (agentSignURL == url) {
return Promise.resolve()
} else {
@@ -243,13 +241,6 @@ const store = new Vuex.Store({
if (sessionStorage.getItem("prj")?.indexOf("saas") > -1) {
params = {...params, corpId: "ww596787bb70f08288"}
}
if (qs.parse(location.search)?.corpId) {
params = {
corpId: qs.parse(location.search).corpId
}
} else {
params = params || {corpId, suiteId}
}
return http.post("/app/wxcp/portal/agentSign", null, {
params: {...params, url}
}).then(res => {