调整切换系统中间出现的问题
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user