人员选择器增加可选自己
This commit is contained in:
		| @@ -63,11 +63,11 @@ const store = new Vuex.Store({ | ||||
|     }, | ||||
|     redirectCode(state, url = location.href) { | ||||
|       let REDIRECT_URI = encodeURIComponent(url), | ||||
|           corpid = state.corpId | ||||
|         corpid = state.corpId | ||||
|       const redirectTo = cid => { | ||||
|         location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base#wechat_redirect' | ||||
|         .replace(/CORPID/g, cid) | ||||
|         .replace(/REDIRECT_URI/g, REDIRECT_URI) | ||||
|           .replace(/CORPID/g, cid) | ||||
|           .replace(/REDIRECT_URI/g, REDIRECT_URI) | ||||
|       } | ||||
|       if (corpid) { | ||||
|         redirectTo(corpid) | ||||
| @@ -227,16 +227,16 @@ const store = new Vuex.Store({ | ||||
|         }) | ||||
|       } else { | ||||
|         return http.post("/app/wxcp/wxuser/getUserInfoByToken") | ||||
|         .then(res => { | ||||
|           if (res?.code == 0) { | ||||
|             state.commit("setOpenUser", res.data) | ||||
|           } | ||||
|         }) | ||||
|           .then(res => { | ||||
|             if (res?.code == 0) { | ||||
|               state.commit("setOpenUser", res.data) | ||||
|             } | ||||
|           }) | ||||
|       } | ||||
|     }, | ||||
|     agentSign(state, params) { | ||||
|       let url = window.location.href, | ||||
|           {corpId, suiteId} = state.state.config | ||||
|         {corpId, suiteId} = state.state.config | ||||
|       if (agentSignURL == url) { | ||||
|         return Promise.resolve() | ||||
|       } else { | ||||
| @@ -358,6 +358,7 @@ const store = new Vuex.Store({ | ||||
|             let sdk = typeof wx?.invoke == 'function' ? wx : jWeixin | ||||
|             sdk?.invoke("selectEnterpriseContact", { | ||||
|               fromDepartmentId: -1, | ||||
|               selectedContextContact: 1, | ||||
|               mode: "multi", | ||||
|               ...params | ||||
|             }, res => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user