Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
da358af7
Commit
da358af7
authored
May 14, 2024
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换站点保存密码修改
parent
f5f49ce9
Pipeline
#88545
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
Site.js
src/layouts/Site.js
+4
-4
login.js
src/pages/user/login/login.js
+6
-1
No files found.
src/layouts/Site.js
View file @
da358af7
...
...
@@ -292,10 +292,10 @@ class Site {
const
date
=
new
Date
();
date
.
setTime
(
date
.
getTime
()
+
24
*
60
*
60
*
1000
);
// date = date.toGMTString();
Cookies
.
set
(
'token'
,
token
,
{
expires
:
date
,
path
:
'/'
,
});
//
Cookies.set('token', token, {
//
expires: date,
//
path: '/',
//
});
localStorage
.
setItem
(
'access_token'
,
accessToken
);
...
...
src/pages/user/login/login.js
View file @
da358af7
...
...
@@ -196,7 +196,12 @@ class Login {
this
.
loginFailed
=
false
;
this
.
guid
=
Math
.
round
(
Math
.
random
()
*
10000
+
Date
.
now
()).
toString
(
16
);
this
.
redirect_state
=
Cookies
.
get
(
'redirect_state'
);
const
token
=
this
.
globalConfig
.
initToken
||
Cookies
.
get
(
'token'
)
||
params
.
getParams
(
'token'
);
const
token
=
this
.
globalConfig
.
initToken
||
Cookies
.
get
(
'token'
)
||
params
.
getParams
(
'token'
)
||
this
.
globalConfig
.
token
||
null
;
const
noTokenSite
=
site
??
null
;
let
{
ddCode
}
=
this
.
globalConfig
;
let
{
loginName
}
=
this
.
globalConfig
;
...
...
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