ProjectManagement_frontend/src/store/index.js

20 lines
276 B
JavaScript
Raw Normal View History

2022-06-27 10:05:27 +08:00
import { createStore } from 'vuex'
const store = createStore({
state () {
return {
token: ''
}
},
mutations: {
setToken(state,value) {
state.token = value
},
clearToken(state) {
state.token = ''
},
}
})
export default store