Commit 7c1372bf by zhangleyuan

feat:解决合并代码后的冲突

parents 6740c852 1a5ac404
......@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-04-27 20:35:34
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-28 15:38:38
* @LastEditTime: 2021-06-28 16:17:53
* @Description:
*/
......@@ -78,22 +78,21 @@ if (getParameterByName('code') && isWeiXin()) {
}else{
mount()
}
function getWXWorkLoginNoCheck(enterpriseId:string, userId:string){
function getWXWorkLoginNoCheck(enterpriseId:string,userId:string) {
const params = {
appTermEnum: 'XIAOMAI_CLOUD_CLASS_PC_WEB_ADMIN',
enterpriseId,
userId,
};
BaseService.getWXWorkLoginNoCheck(params).then((res) => {
User.setUserId(res.result.loginInfo.userId);
User.setToken(res.result.loginInfo.xmToken);
User.setEnterpriseId(res.result.enterpriseId);
window.currentStoreUserInfo = {};
BaseService.getWXWorkLoginNoCheck(params).then((res:any) => {
User.setUserId(res.result.loginInfo.userId)
User.setToken(res.result.loginInfo.xmToken)
User.setEnterpriseId(res.result.enterpriseId)
window.currentStoreUserInfo = {}
window.currentStoreUserInfo.userId = res.result.loginInfo.userId;
window.currentStoreUserInfo.token = res.result.loginInfo.xmToken;
window.currentStoreUserInfo.enterpriseId = res.result.enterpriseId;
User.setIdentifier(res.result.identifier);
mount()
User.setIdentifier(res.result.identifier)
mount();
});
}
\ No newline at end of file
}
......@@ -55,7 +55,6 @@ function Login(props) {
User.removeUserId();
User.removeToken();
User.removeEnterpriseId();
storage.set('expiration_tip_login', true);
}, []);
function getWXWorkLoginNoCheck(enterpriseId, userId) {
const params = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment