import Vue from 'vue'; import Vuex from 'vuex'; import school from './modules/school'; import user from './modules/user'; import permissionToast from './modules/permissionToast'; import getters from './getters'; Vue.use(Vuex); const store = new Vuex.Store({ state: { webViewUrl: '', }, getters, mutations: { // webViewUrl updateWebVeiwUrl(state, url) { state.webViewUrl = url }, }, actions: { }, modules: { school, user, permissionToast }, }); export default store;