智慧社区后台管理页面
liuyg
2022-01-13 0a2d6cae514918e9c1d1422806c366d7e5723923
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
import { getStore, setStore } from "@/util/store";
 
import { getDictionary } from "@/api/system/dict";
 
const map = {
  state: {
    rotesData: false,
    pointData: false,
  },
  //   actions: {
  //     FlowRoutes({commit}) {
  //       return new Promise((resolve, reject) => {
  //         getDictionary({code: 'flow'}).then(res => {
  //           commit('SET_FLOW_ROUTES', res.data.data);
  //           resolve();
  //         }).catch(error => {
  //           reject(error)
  //         })
  //       })
  //     },
  //   },
  mutations: {
    setRotesData(state, data) {
      state.rotesData = data;
    },
    setPointData(state, data) {
      state.pointData = data;
    },
  },
};
 
export default map;