田源
2024-12-24 63920d1bb92934520a38993d00c6768e2cefd19c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import {setStore, getStore} from '@/util/store'
import user from "@/store/modules/user";
 
const flow = {
  state: {
    methodBtn: false,
    editMethodBtn:false,
    type:"",
  },
  mutations: {
    setMethodBtn(state, value) {
      state.methodBtn = value;
    },
 
    setEditMethodBtn(state, value) {
      state.methodBtn = value;
    },
 
    setTypeChange(state,value){
      state.type = value;
    }
  },
  actions: {
    // 更新保存 取消按钮
    updateMethodBtn({commit}, value) {
      commit('setMethodBtn', value);
    },
 
    editNodesStatus({commit}, value){
      commit('setEditMethodBtn', value);
    },
 
    typeChange({commit}, value){
      commit('setTypeChange', value);
    }
  }
}
export default flow