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.
15 lines
365 B
15 lines
365 B
import Vue from 'vue'
|
|
import Vuex from 'vuex'
|
|
import moduleUser from '@/store/user.js'
|
|
|
|
Vue.use(Vuex)
|
|
|
|
const store = new Vuex.Store({
|
|
modules: {
|
|
// 挂载用户的 vuex 模块,模块内成员的访问路径被调整为 m_user,例如:
|
|
// 用户模块中 user 数组的访问路径是 m_user/user
|
|
'm_user': moduleUser
|
|
}
|
|
})
|
|
|
|
export default store
|
|
|