Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-questionnaire
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cb6f57a8
authored
Nov 22, 2024
by
陆志强
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/login'
parents
5fdf3edf
00d487d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
plugins/UserAction/login.js
+5
-5
No files found.
plugins/UserAction/login.js
View file @
cb6f57a8
import
Cookie
from
'js-cookie'
export
default
function
({
token
,
onFinished
}
=
{
token
:
''
})
{
const
store
=
this
.
$store
const
{
uin
}
=
this
.
$route
.
query
const
{
id
}
=
this
.
$route
.
params
token
&&
Cookie
.
set
(
'token'
,
token
,
{
expires
:
10
});
store
.
_actions
[
'users/getUerInfo'
][
0
](
uin
)
store
.
_actions
[
'users/postInfo'
][
0
](
id
)
this
.
$store
.
dispatch
(
'users/getUerInfo'
,
{
uin
})
setTimeout
(()
=>
{
this
.
$store
.
dispatch
(
'users/postInfo'
,
{
id
})
},
1000
)
onFinished
&&
onFinished
()
return
this
}
\ No newline at end of file
}
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