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.
26 lines
413 B
26 lines
413 B
import Vue from 'vue'
|
|
import Vuex from 'vuex'
|
|
import user from '@/store/modules/user'
|
|
import getters from './getters'
|
|
import dict from './modules/dict'
|
|
|
|
|
|
Vue.use(Vuex)
|
|
|
|
const store = new Vuex.Store({
|
|
state: {
|
|
formData: null // 用于存储表单数据的状态
|
|
},
|
|
mutations: {
|
|
updateFormData(state, data) {
|
|
state.formData = data;
|
|
}
|
|
},
|
|
modules: {
|
|
user,
|
|
dict
|
|
},
|
|
getters
|
|
})
|
|
|
|
export default store
|
|
|