Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c0aabcc2
authored
Oct 24, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
token失效时间
parent
2800a3f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
dist/js/person/login.js
dist/js/person/register.js
dist/js/person/login.js
View file @
c0aabcc2
...
...
@@ -275,8 +275,8 @@
if
(
res
.
errcode
===
0
)
{
//注入token
Util
.
setCookie
(
'token'
,
res
.
data
.
access_token
,
1
,
cookieHostname
);
Util
.
setCookie
(
'user_id'
,
res
.
data
.
user_id
,
1
,
cookieHostname
);
Util
.
setCookie
(
'token'
,
res
.
data
.
access_token
,
1
5
,
cookieHostname
);
Util
.
setCookie
(
'user_id'
,
res
.
data
.
user_id
,
1
5
,
cookieHostname
);
window
.
location
.
href
=
home_url
;
...
...
@@ -329,8 +329,8 @@
if
(
res
.
errcode
===
0
)
{
//注入token
Util
.
setCookie
(
'token'
,
res
.
data
.
access_token
,
1
,
cookieHostname
);
Util
.
setCookie
(
'user_id'
,
res
.
data
.
user_id
,
1
,
cookieHostname
);
Util
.
setCookie
(
'token'
,
res
.
data
.
access_token
,
1
5
,
cookieHostname
);
Util
.
setCookie
(
'user_id'
,
res
.
data
.
user_id
,
1
5
,
cookieHostname
);
window
.
location
.
href
=
home_url
;
...
...
dist/js/person/register.js
View file @
c0aabcc2
...
...
@@ -270,8 +270,8 @@
if
(
res
.
errcode
===
0
)
{
//注入token
Util
.
setCookie
(
'token'
,
res
.
data
.
access_token
,
1
,
cookieHostname
);
Util
.
setCookie
(
'user_id'
,
res
.
data
.
user_id
,
1
,
cookieHostname
);
Util
.
setCookie
(
'token'
,
res
.
data
.
access_token
,
1
5
,
cookieHostname
);
Util
.
setCookie
(
'user_id'
,
res
.
data
.
user_id
,
1
5
,
cookieHostname
);
window
.
location
.
href
=
home_url
;
...
...
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