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
a8fcca92
authored
Nov 22, 2024
by
陆志强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复登录
parent
5fdf3edf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
plugins/UserAction/login.js
+3
-5
No files found.
plugins/UserAction/login.js
View file @
a8fcca92
import
Cookie
from
'js-cookie'
import
Cookie
from
'js-cookie'
export
default
function
({
token
,
onFinished
}
=
{
token
:
''
})
{
export
default
function
({
token
,
onFinished
}
=
{
token
:
''
})
{
const
store
=
this
.
$store
const
{
uin
}
=
this
.
$route
.
query
const
{
uin
}
=
this
.
$route
.
query
const
{
id
}
=
this
.
$route
.
params
const
{
id
}
=
this
.
$route
.
params
token
&&
Cookie
.
set
(
'token'
,
token
,
{
expires
:
10
});
token
&&
Cookie
.
set
(
'token'
,
token
,
{
expires
:
10
});
store
.
_actions
[
'users/getUerInfo'
][
0
](
uin
)
this
.
$store
.
dispatch
(
'users/getUerInfo'
,
{
uin
}
)
store
.
_actions
[
'users/postInfo'
][
0
](
id
)
this
.
$store
.
dispatch
(
'users/postInfo'
,
{
id
}
)
onFinished
&&
onFinished
()
onFinished
&&
onFinished
()
return
this
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