From 28de79b44655118b1deffb5c9a8b06ec2904905b Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期四, 13 六月 2024 17:38:24 +0800 Subject: [PATCH] 功能添加 --- src/store/index.ts | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 9adf9ef..421fc2d 100644 --- a/src/store/index.ts +++ b/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: {} }); -- Gitblit v1.9.3