diff --git a/.env.dev b/.env.dev index a0f83b9..2cefa71 100644 --- a/.env.dev +++ b/.env.dev @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.0.30:48080' +VUE_APP_BASE_API = 'http://192.168.1.61:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/store/modules/home.js b/src/store/modules/home.js new file mode 100644 index 0000000..2b2919d --- /dev/null +++ b/src/store/modules/home.js @@ -0,0 +1,25 @@ +const state = { + info: null +}; + +const mutations = { + SET_INFO: (state) => { + state.info = state + }, +}; + +const actions = { + setInfo({ commit }, ) { + commit("SET_INFO", ); + }, + closeSideBar({ commit }, { withoutAnimation }) { + commit("CLOSE_SIDEBAR", withoutAnimation); + }, +}; + +export default { + namespaced: true, + state, + mutations, + actions, +}; diff --git a/src/views/copilot/components/CopilotHeader.vue b/src/views/copilot/components/CopilotHeader.vue index 8856fd7..8ee26cf 100644 --- a/src/views/copilot/components/CopilotHeader.vue +++ b/src/views/copilot/components/CopilotHeader.vue @@ -29,6 +29,7 @@