import Vue from 'vue' import Vuex from "vuex"; Vue.use(Vuex) import createPersistedState from "vuex-persistedstate"; import moduleAuth from './module/auth.js'; import { localStorage } from "mp-storage" export default new Vuex.Store({ state: {}, mutations: {}, actions: {}, modules: { moduleAuth }, plugins: [createPersistedState({ storage: localStorage })] });