Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
wx-notification
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a5841700
authored
Apr 14, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 登录过期时间设置24小时
1 parent
016fbcfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/store/modules/app.js
src/store/modules/app.js
View file @
a584170
...
@@ -55,7 +55,7 @@ const actions = {
...
@@ -55,7 +55,7 @@ const actions = {
let
userInfo
=
util
.
getLocalStorage
(
'ww_userInfo'
)
||
''
;
let
userInfo
=
util
.
getLocalStorage
(
'ww_userInfo'
)
||
''
;
if
(
userInfo
&&
userInfo
.
timestamp
)
{
if
(
userInfo
&&
userInfo
.
timestamp
)
{
//判断用户时间戳是否过期12小时
//判断用户时间戳是否过期12小时
if
(
userInfo
.
timestamp
&&
(
Date
.
now
()
-
userInfo
.
timestamp
)
>
(
1000
*
60
*
72
0
))
{
if
(
userInfo
.
timestamp
&&
(
Date
.
now
()
-
userInfo
.
timestamp
)
>
(
1000
*
60
*
144
0
))
{
console
.
log
(
'用户登录过期'
);
console
.
log
(
'用户登录过期'
);
}
else
{
}
else
{
console
.
log
(
'用户登录未过期'
);
console
.
log
(
'用户登录未过期'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment