72ffe2f9 by renchao@pashanhoo.com

1

1 parent 764c7ef1
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-04-12 10:47:33 4 * @LastEditTime: 2023-07-28 15:45:21
5 */ 5 */
6 import { getUserInfo } from '@/api/user' 6 import { getUserInfo } from '@/api/user'
7 const state = { 7 const state = {
8 name: '', 8 name: '',
9 avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png', 9 avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
10 isRefresh: false, 10 isRefresh: false,
11 // 业务流程刷新
12 workFresh: false
11 } 13 }
12 const mutations = { 14 const mutations = {
13 SET_NAME: (state, data) => { 15 SET_NAME: (state, data) => {
...@@ -15,6 +17,9 @@ const mutations = { ...@@ -15,6 +17,9 @@ const mutations = {
15 }, 17 },
16 REFRESH: (state, data) => { 18 REFRESH: (state, data) => {
17 state.isRefresh = data 19 state.isRefresh = data
20 },
21 SETWORKFRESH: (state, data) => {
22 state.workFresh = data
18 } 23 }
19 } 24 }
20 25
...@@ -29,6 +34,9 @@ const actions = { ...@@ -29,6 +34,9 @@ const actions = {
29 refreshPage ({ commit }, data) { 34 refreshPage ({ commit }, data) {
30 commit('REFRESH', data) 35 commit('REFRESH', data)
31 }, 36 },
37 reWorkFresh ({ commit }, data) {
38 commit('SETWORKFRESH', data)
39 }
32 } 40 }
33 export default { 41 export default {
34 namespaced: true, 42 namespaced: true,
......