import Vue from "vue"; import Vuex from "vuex"; import user from "@/store/modules/user"; Vue.use(Vuex); const store = new Vuex.Store({ modules: { user, }, }); export default store; export default { namespaced: true, state: { id: "", name: "", token: "", pic: "", expiration_time: "", }, mutations: { store(state, user) { state.id = user.id; state.token = user.token; state.name = user.name; state.pic