Commit 9a8f4082 by Sweet Zhang

获取token增加customerId

parent 569295ea
...@@ -43,7 +43,7 @@ export class AuthService { ...@@ -43,7 +43,7 @@ export class AuthService {
/** /**
* 获取TOKEN * 获取TOKEN
*/ */
obtainToken(loginId,customerId=JSON.parse(localStorage.getItem('lifeCustomerInfo')).customerId) { obtainToken(loginId,customerId=localStorage.getItem('lifeCustomerInfo') ? JSON.parse(localStorage.getItem('lifeCustomerInfo')).customerId:null) {
const url = this.API + '/authorize/obtainToken'; const url = this.API + '/authorize/obtainToken';
return this.http.post(url, JSON.stringify({ ticket: "life",loginId:loginId,customerId:customerId})); return this.http.post(url, JSON.stringify({ ticket: "life",loginId:loginId,customerId:customerId}));
} }
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
if(window.location.pathname != '/ydLife/identify' && window.location.href.indexOf('preFlag=AGMS') < 0 && window.location.href.indexOf('reminder_detail') < 0){ if(window.location.pathname != '/ydLife/identify' && window.location.href.indexOf('preFlag=AGMS') < 0 && window.location.href.indexOf('reminder_detail') < 0){
window.name = "isReload"; // 在首次进入页面时我们可以给window.name设置一个固定值 window.name = "isReload"; // 在首次进入页面时我们可以给window.name设置一个固定值
initialize(); initialize();
getknowledgeQry(); setTimeout(()=>{getknowledgeQry()});
} }
} }
......
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