Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1256572a
authored
2025-03-27 14:56:04 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
太久的初次登录不调用刷新token接口
1 parent
f36b4c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/store/modules/user.ts
src/store/modules/user.ts
View file @
1256572
...
...
@@ -83,7 +83,7 @@ const useUserStore = defineStore(
function
refreshUserToken
(
isExec
=
true
)
{
let
expiresIn
=
localStorage
.
getItem
(
'expiresIn'
);
if
(
!
expiresIn
)
{
if
(
!
expiresIn
||
(
parseInt
(
expiresIn
)
-
Date
.
now
())
<
-
1700000
)
{
return
;
}
const
process
=
async
()
=>
{
...
...
Write
Preview
Styling with
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