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;