Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
72ffe2f9
authored
2023-07-28 15:45:30 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
764c7ef1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/store/modules/user.js
src/store/modules/user.js
View file @
72ffe2f
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
4-12 10:47:33
* @LastEditTime: 2023-0
7-28 15:45:21
*/
import
{
getUserInfo
}
from
'@/api/user'
const
state
=
{
name
:
''
,
avatar
:
'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
,
isRefresh
:
false
,
// 业务流程刷新
workFresh
:
false
}
const
mutations
=
{
SET_NAME
:
(
state
,
data
)
=>
{
...
...
@@ -15,6 +17,9 @@ const mutations = {
},
REFRESH
:
(
state
,
data
)
=>
{
state
.
isRefresh
=
data
},
SETWORKFRESH
:
(
state
,
data
)
=>
{
state
.
workFresh
=
data
}
}
...
...
@@ -29,6 +34,9 @@ const actions = {
refreshPage
({
commit
},
data
)
{
commit
(
'REFRESH'
,
data
)
},
reWorkFresh
({
commit
},
data
)
{
commit
(
'SETWORKFRESH'
,
data
)
}
}
export
default
{
namespaced
:
true
,
...
...
Please
register
or
sign in
to post a comment