From 1888b426ff2b6a529f5fdef0f0453dadef71824b Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 17 四月 2024 10:17:38 +0800 Subject: [PATCH] 隐藏多单位的问题 --- src/store/index.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index ceffa8e..1b91708 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -4,11 +4,15 @@ Vue.use(Vuex) export default new Vuex.Store({ - state: { + state: { + menus: null, }, getters: { }, mutations: { + setMenus(state, payload) { + state.menus = payload; + }, }, actions: { }, -- Gitblit v1.8.0