초기화 함수를 따로 빼주고
state: getDefaultState(), mutations: { RESET_STATE(state) { Object.assign(state, getDefaultState()); } } actions: { resetState({ commit }) { commit('RESET_STATE'); },
참고 :: https://shouts.dev/how-to-reset-vuex-module-state