Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
9a8f4082
Commit
9a8f4082
authored
Jun 17, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取token增加customerId
parent
569295ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/app/auth/auth.service.ts
+1
-1
src/index.html
+1
-1
No files found.
src/app/auth/auth.service.ts
View file @
9a8f4082
...
@@ -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
}));
}
}
...
...
src/index.html
View file @
9a8f4082
...
@@ -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
()}
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment