Commit 366a6c48 authored by zengyilun's avatar zengyilun

修复收缩侧边栏

parent 16bcc222
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
export default{ export default{
name: 'SiderBar', name: 'SiderBar',
conputed: { computed: {
isCollapse () { isCollapse () {
return this.$store.state.isCollapse return this.$store.state.isCollapse
} }
......
...@@ -22,7 +22,7 @@ const store = new Vuex.Store({ ...@@ -22,7 +22,7 @@ const store = new Vuex.Store({
SET_GISOP_USER(state, payload) { SET_GISOP_USER(state, payload) {
state.gisopUserInfo = payload state.gisopUserInfo = payload
}, },
SET_Collapse(state, payload) { SET_COLLAPSE(state, payload) {
state.isCollapse = payload state.isCollapse = payload
}, },
SET_SIDE_MENU(state, payload) { SET_SIDE_MENU(state, payload) {
...@@ -40,7 +40,7 @@ const store = new Vuex.Store({ ...@@ -40,7 +40,7 @@ const store = new Vuex.Store({
commit('SET_GISOP_USER', payload) commit('SET_GISOP_USER', payload)
}, },
setCollapse({ commit }, payload) { setCollapse({ commit }, payload) {
commit('SET_Collapse', payload) commit('SET_COLLAPSE', payload)
}, },
setSideMenu({ commit }, payload) { setSideMenu({ commit }, payload) {
commit('SET_SIDE_MENU', payload) commit('SET_SIDE_MENU', payload)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment