src/store/index.ts
@@ -1,10 +1,32 @@ import { fa } from "element-plus/es/locale"; import { createStore } from "vuex"; export default createStore({ state: { // 方案预演切换 setAnimation: null, // 验证码 loginCode: null, // 图层管理 layerFlag: false, // 鼠标右键点击菜单 rightMeuFlag: false, rightMenuIndex: null, rightCoodinate: null, setFlyPlanFlag: false, setAddEntityList: { flag: false, title: "", type: 0 } }, mutations: {}, mutations: { //验证码刷新 setLoginCode(state, num) { state.loginCode = num; }, }, actions: {}, modules: {}, modules: {} });