import { store } from 'quasar/wrappers'
import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import User from './user/userInfo'
* If not building with SSR mode, you can
* directly export the Store instantiation;
*
* The function below can be async too; either use
* async/await or return a Promise which resolves
* with the Store instance.
*/
export default store(function () {
const Store = createStore({
state() {
},
mutations: {
},
modules: {
User,
},
strict: process.env.DEBUGGING,
plugins: [createPersistedState()]
})
return Store
})