You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
551 B

import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
token: null,
path: '/pages/index/index',
people: {
id: null,
name: null,
tag: null
},
taskType:'',
},
mutations: {
savePath (state, path) {
state.path = path;
},
saveToken (state, token) {
state.token = token
},
savePeople (state, people){
state.people = people
},
saveTaskType (state, taskType){
state.taskType = taskType
},
},
actions: {},
})
export default store