Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
罗超
bigwood
Commits
2998465a
Commit
2998465a
authored
Nov 02, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
edb30f40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
actions.ts
src/store/modules/user/actions.ts
+2
-3
No files found.
src/store/modules/user/actions.ts
View file @
2998465a
...
...
@@ -4,13 +4,12 @@ import UserService from '../../../api/user'
import
{
setStoreState
}
from
'../../utils'
import
Store
from
'../../../store'
import
message
from
'../../../utils/message'
import
{
useI18n
}
from
'vue-i18n'
//import router from '../../../router';
/**
* @description 所有跟用户相关的内容
* @return status 返回状态 err_code:1,逻辑正确,err_code:0,发生错误。
*/
const
{
t
}
=
useI18n
()
const
userActions
=
{
// 刷新令牌
refreshToken
()
{
...
...
@@ -55,7 +54,7 @@ const userActions = {
console
.
log
(
params
)
let
loginResult
=
await
UserService
.
login
(
param
)
if
(
loginResult
.
data
.
resultCode
==
ApiResult
.
SUCCESS
){
message
.
successMsg
(
t
(
"login.success"
)
)
message
.
successMsg
(
'登录成功'
)
setStoreState
(
'user'
,
'loginUserInfo'
,
loginResult
.
data
.
data
)
setStoreState
(
'user'
,
'menuList'
,
loginResult
.
data
.
data
.
MenuList
)
const
token
=
{
...
...
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