import { createStore } from 'vuex' const store = createStore({ state () { return { token: '' } }, mutations: { setToken(state,value) { state.token = value }, clearToken(state) { state.token = '' }, } }) export default store